コード例 #1
0
ファイル: Rijndael.cs プロジェクト: radicalgeek/Common
 public static string Encrypt(string plainText, EncryptionKey encryptionKey, int passwordIterations = 2)
 {
     return Encrypt(plainText, encryptionKey.PassPhrase, encryptionKey.SaltValue, encryptionKey.InitVector,
                    passwordIterations);
 }
コード例 #2
0
ファイル: Rijndael.cs プロジェクト: radicalgeek/Common
 public static string Decrypt(string cipherText, EncryptionKey encryptionKey, int passwordIterations = 2)
 {
     return Decrypt(cipherText, encryptionKey.PassPhrase, encryptionKey.SaltValue, encryptionKey.InitVector, passwordIterations);
 }