Beispiel #1
0
 /// <summary>
 /// DES解密字符串
 /// </summary>
 /// <param name="decryptString">待解密的字符串</param>
 /// <returns>解密成功返回解密后的字符串,失败返源串</returns>
 public static string DecryptDESByKey8(string decryptString)
 {
     //return decode(decryptString);
     return(StringEncryption.DecryptDESByKey8(decryptString, _key));
 }
Beispiel #2
0
 /// <summary>
 /// DES加密字符串
 /// </summary>
 /// <param name="encryptString">待加密的字符串</param>
 /// <returns>加密成功返回加密后的字符串,失败返回源串</returns>
 public static string EncryptDESByKey8(string encryptString)
 {
     //return encode(encryptString);
     return(StringEncryption.EncryptDESByKey8(encryptString, _key));
 }