public static string DESEncrypt(string value, Encoding encoding) { return(EncryptHelper.DESEncrypt(value, encoding, EncryptHelper.cryptKey, EncryptHelper.cryptIV)); }
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)); }
public static string DESEncrypt(string value) { return(EncryptHelper.DESEncrypt(value, Encoding.Default)); }