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
}
}
}
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#、WinForm、ASP.NET - Md5散列加密
- C#MD5为密码加密
- asp.net 密码加密 MD5 加密
- C#:使用MD5对用户密码加密与解密
- asp.net 2.0中md5密码加密
- 使用C# 用MD5进行密码加密源代码
- C#:使用MD5对密码进行加密!
- C#MD5密码加密
- 【转】asp.net(c#)加密解密算法之sha1、md5、des、aes实现源码详解
- ASP.NET with C#使用md5,sha1加密初探
- C#中Md5给密码加密
- asp.net中密码加密MD5
- c# MD5 加密登录密码
- 温习ASP调用C#的DLL并实现用户名密码进行域验证反馈结果
- Asp.Net(C#) MD5 加密
- C# MD5 HASH的加密
- 如何用彩虹表破解MD5、LM Hash等复杂加密密码
- c#与JavaScript实现对用户名、密码进行RSA非对称加密
- ASP.NET,C#后台调用前台javascript的五种方法
- C# MD5 加密 string->string