Пример #1
0
 /// <summary>
 /// DES 加密(数据加密标准,速度较快,适用于加密大量数据的场合)
 /// </summary>
 /// <param name="encryptString">待加密的明文</param>
 /// <param name="encryptKey">加密的密钥,必须为8位</param>
 /// <returns>加密后的密文</returns>
 public static string DESEncrypt(this string encryptString, string encryptKey)
 {
     return(CryptoUtility.DESEncrypt(encryptString, encryptKey));
 }