Beispiel #1
0
 private static string Decrypt(string cipherText)
 {
     return DESCryptoTextProvider.Decrypt(_key, _iv, Convert.FromBase64String(cipherText));
 }
Beispiel #2
0
 private static string Encrypt(string sourceText)
 {
     return Convert.ToBase64String(DESCryptoTextProvider.Encrypt(_key, _iv, sourceText));
 }