.NET中获取字符串的MD5码

① 导入命名空间:
1using System.Web.Security;

② 获取MD5码:
1string Password = FormsAuthentication.HashPasswordForStoringInConfigFile(TextBox1.Text.ToString(), "MD5");

最后直接进行判断:
Code
posted @ 2009-09-07 10:24  王翔(kingfly)  阅读(212)  评论(0编辑  收藏  举报