Skip to content

Instantly share code, notes, and snippets.

Avatar

Anders Pedersen bredstrup

View GitHub Profile
@bredstrup
bredstrup / DelegatePropertyConfiguration
Created Sep 11, 2014
Glass Delegate implementaion
View DelegatePropertyConfiguration
public class DelegatePropertyConfiguration<T>: AbstractPropertyConfiguration where T : AbstractDataMappingContext
{
/// <summary>
/// The default Constructor.
/// </summary>
public DelegatePropertyConfiguration()
{
}
public Action<T> MapToCmsAction { get; set; }
@bredstrup
bredstrup / CryptoService
Last active Aug 29, 2015
Encryption / decryption using BouncyCastle
View CryptoService
using System;
using System.IO;
using System.Text;
using Org.BouncyCastle.Crypto;
using Org.BouncyCastle.Crypto.Engines;
using Org.BouncyCastle.Crypto.Generators;
using Org.BouncyCastle.Crypto.Modes;
using Org.BouncyCastle.Crypto.Parameters;
using Org.BouncyCastle.Security;