Пример #1
0
 public static string Encrypt(string plainText, EncryptionKey encryptionKey, int passwordIterations = 2)
 {
     return Encrypt(plainText, encryptionKey.PassPhrase, encryptionKey.SaltValue, encryptionKey.InitVector,
                    passwordIterations);
 }
Пример #2
0
 public static string Decrypt(string cipherText, EncryptionKey encryptionKey, int passwordIterations = 2)
 {
     return Decrypt(cipherText, encryptionKey.PassPhrase, encryptionKey.SaltValue, encryptionKey.InitVector, passwordIterations);
 }