示例#1
0
 /// <summary>
 ///
 /// </summary>
 /// <returns></returns>
 public bool CheckSign()
 {
     if (_paramSet.ContainsKey(SignName))
     {
         if (_requestParam != null)
         {
             string key = SignUtils.EncodeSign(_requestParam, _signKey);
             if (!string.IsNullOrEmpty(key) && key == _paramSet[SignName])
             {
                 return(true);
             }
         }
     }
     return(false);
 }
示例#2
0
 /// <summary>
 /// 签名加密
 /// </summary>
 /// <param name="sign"></param>
 /// <returns></returns>
 protected virtual string EncryptSign(string sign)
 {
     return(SignUtils.EncodeSign(sign, SignKey));
 }