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