asp.net 2.0 中的两种加密方法
2007-04-03 17:09 ruinet 阅读(315) 评论(0) 编辑 收藏 举报
在asp.net 2.0 中有两种加密方法:MD5 和SHA1
System.Web.Security.FormsAuthentication.HashPasswordForStoringInConfigFile("要加密的字符串", "MD5")
System.Web.Security.FormsAuthentication.HashPasswordForStoringInConfigFile("要加密的字符串", "SHA1")
System.Web.Security.FormsAuthentication.HashPasswordForStoringInConfigFile("要加密的字符串", "MD5")
System.Web.Security.FormsAuthentication.HashPasswordForStoringInConfigFile("要加密的字符串", "SHA1")