System.Web.Security.FormsAuthentication.HashPasswordForStoringInConfigFile("","MD5");
注意这里:
例如:将ABC转化为MD5格式
string aaaa= System.Web.Security.FormsAuthentication.HashPasswordForStoringInConfigFile("ABC", "MD5");
aaaa:"902FBDD2B1DF0C4F70B4A5D23525E932"
执行过程中:
碰到的疑问:
这串语句下边会出现绿线,是警告的。不用理会,直接执行就行。