Beispiel #1
0
 /// <summary>
 /// 加密字符串 密钥为系统默认
 /// </summary>
 /// <param name="inputStr">输入字符串</param>
 /// <returns>输出加密后字符串</returns>
 public static string SEncryptString(string inputStr)
 {
     YtSecurity ws = new YtSecurity();
     return ws.EncryptString(inputStr, "");
 }
Beispiel #2
0
 /// <summary>
 /// 解密字符串
 /// </summary>
 /// <param name="inputStr">要解密的字符串</param>
 /// <param name="keyStr">密钥</param>
 /// <returns>解密后的结果</returns>
 public static string SDecryptString(string inputStr, string keyStr)
 {
     YtSecurity ws = new YtSecurity();
     return ws.DecryptString(inputStr, keyStr);
 }