1、导入命名空间:
using System.Web.Security;
2、获取MD5码:
如:
123456的MD5码是: FormsAuthentication.HashPasswordForStoringInConfigFile("123456","MD5")
1、导入命名空间:
using System.Web.Security;
2、获取MD5码:
如:
123456的MD5码是: FormsAuthentication.HashPasswordForStoringInConfigFile("123456","MD5")
转载于:https://www.cnblogs.com/star-w/archive/2012/10/07/2714032.html