Example #1
0
 public static string DESDecrypt(string value, Encoding encoding)
 {
     return(EncryptHelper.DESDecrypt(value, encoding, EncryptHelper.cryptKey, EncryptHelper.cryptIV));
 }
Example #2
0
 public static string DESDecrypt(string value, Encoding encoding, byte[] cryptKey, byte[] cryptIV)
 {
     byte[] data  = System.Convert.FromBase64String(value);
     byte[] bytes = EncryptHelper.DESDecrypt(data, cryptKey, cryptIV);
     return(encoding.GetString(bytes));
 }
Example #3
0
 public static string DESDecrypt(string value)
 {
     return(EncryptHelper.DESDecrypt(value, Encoding.Default));
 }