Example #1
0
 /// <summary>
 /// 对称加密类的构造函数
 /// </summary>
 public DES_(string key)
 {
     mydes = new DESCryptoServiceProvider();
     Key   = key;
     IV    = "728#$$%^TyguyshdsufhsfwofnhKJHJKHIYhfiusf98*(^%$^&&(*&()$##@%%$RHGJJHHJ";
 }
Example #2
0
 /// <summary>
 /// 对称加密类的构造函数
 /// </summary>
 public DES_(string key, string iv)
 {
     mydes = new DESCryptoServiceProvider();
     Key   = key;
     IV    = iv;
 }
Example #3
0
 public static string AESDecrypt(string text, string password = "******")
 {
     //return Decrypt(text, password);//
     //return AESDecrypt(text, password, iv);
     return(DES.AESDecrypt(text));
 }