您的位置:首页 > 编程语言 > ASP

C# ASP 调用MD5 加密密码

2017-12-12 15:10 651 查看
利用库 so easy Mark一下 记住

using System;

using System.Collections.Generic;

using System.Linq;

using System.Web;

using System.Web.UI;

using System.Web.UI.WebControls;

using   System.Security.Cryptography;                                 //这个是必须的

namespace AgentWeb

{

    public partial class _default : System.Web.UI.Page

    {

        protected void Page_Load(object sender, EventArgs e)

        {

        }

        protected void Button1_Click(object sender, EventArgs e)

        {

            TextBox1.Text = System.Web.Security.FormsAuthentication.HashPasswordForStoringInConfigFile(TextBox2.Text, "MD5");    //将text2 生成 Text1

        }

    }

}
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签:  C# MD5 加密 md5 asp