briny
 1 string signature = Request["signature"];
 2 string timestamp = Request["timestamp"];
 3 string nonce     = Request["nonce"];
 4 
 5 List<string> list = new List<string>();
 6 
 7 list.Add(appToken);
 8 list.Add(timestamp);
 9 list.Add(nonce);
10 
11 list.Sort();
12 
13 StringBuilder sb = new StringBuilder();
14 foreach(string s in list)
15    sb.Append(s);
16 
17 if(signature.ToUpper() != System.Web.Security.FormsAuthentication.HashPasswordForStoringInConfigFile(sb.ToString(),"SHA1"))
18    HttpContext.Current.Response.Write("非法的验证");
19 else
20    HttpContext.Current.Response.Write(Request["echostr"]);

 

分类:

技术点:

相关文章:

  • 2021-11-26
  • 2021-11-02
  • 2021-11-02
  • 2021-09-26
  • 2022-12-23
  • 2021-09-16
  • 2022-12-23
  • 2021-12-05
猜你喜欢
  • 2022-12-23
  • 2021-09-16
  • 2021-11-12
  • 2022-12-23
  • 2022-12-23
  • 2021-11-12
  • 2021-11-02
相关资源
相似解决方案