public static string MD5Hash(this string s)
{
return System.Web.Security.FormsAuthentication.HashPasswordForStoringInConfigFile(s,"MD5");
}
实现了MD5加密
本文介绍了一种使用C#语言实现MD5加密的方法。通过System.Web.Security.FormsAuthentication类的静态方法HashPasswordForStoringInConfigFile,可以方便地对字符串进行MD5加密处理。
public static string MD5Hash(this string s)
{
return System.Web.Security.FormsAuthentication.HashPasswordForStoringInConfigFile(s,"MD5");
}

被折叠的 条评论
为什么被折叠?