/// <summary> /// 解密 /// </summary> /// <param name="Text">需解密字符串</param> /// <returns>已解密字符串</returns> public static string Decrypt(string Text) { if (!string.IsNullOrEmpty(Text)) { return(DESEncryptGeneral.Decrypt(Text, sKey)); } return(string.Empty); }
/// <summary> /// 加密 /// </summary> /// <param name="Text">需加密的字符串</param> /// <returns>已加密的字符串</returns> public static string Encrypt(string Text) { return(DESEncryptGeneral.Encrypt(Text, sKey)); }