using System.Web.Security; protected void Page_Load(object sender, EventArgs e) { Response.Write("123的MD吗是" + FormsAuthentication.HashPasswordForStoringInConfigFile("123","MD5")); }
string pwd = txtpassword.Text.Trim(); //把密码转为md5的形式 pwd = FormsAuthentication.HashPasswordForStoringInConfigFile(pwd, "MD5"); bool b=LoginManager.Login(name,pwd );
相关资源:MD5密码转换器