/// <summary> /// DES解密 /// <para>将一段DES密文通过CBC的方式根据privateKey和publicKey进行解密</para> /// <para>公钥和私钥只能是可以通过Encoding.GetBytes转换的字符串,否则密钥验证会失效</para> /// </summary> /// <typeparam name="T">要将密文解析成的类型</typeparam> /// <param name="content">密文</param> /// <param name="privateKey">私钥</param> /// <param name="publicKey">公钥</param> /// <returns></returns> public static T DeEncryptDES <T>(this string content, string privateKey, string publicKey) { return(EncryptionUtil.DeEncryptDES <T>(content, privateKey, publicKey)); }