在asp.net 2.0 中有两种加密方法:MD5 和SHA1
System.Web.Security.FormsAuthentication.HashPasswordForStoringInConfigFile("要加密的字符串", "MD5")
System.Web.Security.FormsAuthentication.HashPasswordForStoringInConfigFile("要加密的字符串", "SHA1")
转载于:https://www.cnblogs.com/ruinet/archive/2007/04/03/698613.html