摘要: //须添加对System.Web的引用usingSystem.Web.Security;///<summary>///SHA1加密字符串///</summary>///<paramname="source">源字符串</param>///<returns>加密后的字符串</returns>publicstringSHA1(stringsource){returnFormsAuthentication.HashPasswordForStoringInConfigFile(source,"SHA1 阅读全文
posted @ 2013-03-06 22:17 RichZhang 阅读(149) 评论(0) 推荐(0) 编辑