I would like to extend the way that the SqlMembershipProvider handles encryption by using the Cryptography block.
I would like to modify the underlying SqlMembershipProvider as little as possible.
Example SqlMembershipProvider excerpt:
protected override byte[] EncryptPassword(byte[] password)
{
var aesEncryptedPass = Cryptographer.EncryptSymmetric(EncryptionType, password);
return base.EncryptPassword(aesEncryptedPass);
}
protected override byte[] DecryptPassword(byte[] encodedPassword)
{
var decryptedPass ...
Go to the complete details ...