示例#1
0
 public static string DESEncrypt(string value, Encoding encoding)
 {
     return(EncryptHelper.DESEncrypt(value, encoding, EncryptHelper.cryptKey, EncryptHelper.cryptIV));
 }
示例#2
0
 public static string DESEncrypt(string value, Encoding encoding, byte[] cryptKey = null, byte[] cryptIV = null)
 {
     byte[] bytes   = encoding.GetBytes(value);
     byte[] inArray = EncryptHelper.DESEncrypt(bytes, cryptKey, cryptIV);
     return(System.Convert.ToBase64String(inArray));
 }
示例#3
0
 public static string DESEncrypt(string value)
 {
     return(EncryptHelper.DESEncrypt(value, Encoding.Default));
 }