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