Beispiel #1
0
 public static byte[] Decrypt(byte[] input, string password)
 {
     return(CryptoHelper.Decrypt(input, GetAesCryptoServiceProvider(password)));
 }
Beispiel #2
0
 public static string Encrypt(string text, string password)
 {
     return(CryptoHelper.Encrypt(text, GetAesCryptoServiceProvider(password)));
 }
Beispiel #3
0
 public static string Decrypt(string base64, string password)
 {
     return(CryptoHelper.Decrypt(base64, GetAesCryptoServiceProvider(password)));
 }
Beispiel #4
0
 /// <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)));
 }