/// <summary> /// 检查NES编码 /// </summary> /// <param name="Value">字符串</param> /// <param name="Key">键</param> /// <returns>字符串</returns> public static String CheckNESEncrypt(String Value, String Key) { Des加密 myDes = new Des加密(); myDes.MyDesKey = myDes.KeyEncrypt(Key); myDes.EncryptStr = Value.Trim(); myDes.DesEncrypt(); return myDes.MyDesStr; }
/// <summary> /// 检查NES解码 /// </summary> /// <param name="Value">字符串</param> /// <param name="Date">日期</param> /// <returns>字符串</returns> public static String CheckNESDecrypt(String Value, DateTime Date) { Des加密 myDes = new Des加密(); myDes.MyDesKey = myDes.KeyEncrypt(Date); myDes.DecryptStr = Value.Trim(); myDes.DesDecrypt(); return myDes.MyDesStr; }