摘要:
1 方法一: 2 //须添加对System.Web的引用 3 using System.Web.Security; 4 5 ... 6 7 /// 8 /// SHA1加密字符串 9 /// 10 /// 源字符串 11 /// 加密后的字符串 12 public string SHA1(string source) 13 { 14 return FormsAuthentication.HashPasswordForStoringInConfigFile(so... 阅读全文