asp.net 2.0 中MD5加密方法
protected void Button1_Click(object sender, EventArgs e)
{
TextBox2.Text = EncryptString(TextBox1.Text);
}
//MD5加密方法
public static string EncryptString(string strSourceCode)
{
return FormsAuthentication.HashPasswordForStoringInConfigFile(strSourceCode, "md5");
}