摘要:
//须添加对System.Web的引用usingSystem.Web.Security;///<summary>///SHA1加密字符串///</summary>///<paramname="source">源字符串</param>///<returns>加密后的字符串</returns>publicstringSHA1(stringsource){returnFormsAuthentication.HashPasswordForStoringInConfigFile(source,"SHA1 阅读全文