public static byte[] Decrypt(byte[] input, string password) { return(CryptoHelper.Decrypt(input, GetAesCryptoServiceProvider(password))); }
public static string Encrypt(string text, string password) { return(CryptoHelper.Encrypt(text, GetAesCryptoServiceProvider(password))); }
public static string Decrypt(string base64, string password) { return(CryptoHelper.Decrypt(base64, GetAesCryptoServiceProvider(password))); }
/// <summary> /// 使用TripleDES加密字节数组 /// </summary> /// <param name="input"></param> /// <param name="password"></param> /// <returns></returns> public static byte[] Encrypt(byte[] input, string password) { return(CryptoHelper.Encrypt(input, GetTripleDESCryptoServiceProvider(password))); }