/// <summary> /// 解密字符串 密钥为系统默认 /// </summary> /// <param name="inputStr">要解密的字符串</param> /// <returns>解密后的结果</returns> public static string SDecryptString(string inputStr) { EncryptHelper helper = new EncryptHelper(); return(helper.DecryptString(inputStr, "")); }
/// <summary> /// 加密字符串 /// </summary> /// <param name="inputStr">输入字符串</param> /// <param name="keyStr">密码,可以为“”</param> /// <returns>输出加密后字符串</returns> public static string SEncryptString(string inputStr, string keyStr) { EncryptHelper helper = new EncryptHelper(); return(helper.EncryptString(inputStr, keyStr)); }