.NET中获取字符串的MD5码
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")