public static string MD532(string HashString)
{
return FormsAuthentication.HashPasswordForStoringInConfigFile(HashString, "MD5").ToLower();
}MD5 32位加密
{
return FormsAuthentication.HashPasswordForStoringInConfigFile(HashString, "MD5").ToLower();
}MD5 32位加密
解决方案 »
- .net获取汉字乱码问题
- 在内容中如何获取网址啊?
- 成功配置过Visual Source Safe 2005的朋友请帮帮忙。
- 一个困扰了我很久的问题?为什么静态变量也能保存长久数据,而我们不用,偏要用System.Web.Caching.Cache?
- 读取图片文件
- 求学做购物网站的步骤
- 求助高手!!如何在aspx中调用dll 谢谢了
- 奇怪的未能加载类型错误?
- 江湖告急????希望大家赶快帮忙
- 我电脑安装DevExpress后 在html源代码中不能格式化 注释代码了。
- 奇怪的 Gridview 中ItemTemplate的问题!!!!!!!!!!!!!
- TraceBack是什么,怎么用,怎么实现?
{
if (Page.IsValid)
{
string UserName = this.TextBox1.Text;
string UserPwd = this.TextBox2.Text;
//下面为加密操作
string UserPwd=FormsAuthentication.HashPasswordForStoringInConfigFile(UserPwd, "MD5")
Users SingleUser = new Users();
StudentManager..Encrypt(TxtUserPwd
SingleUser.UserName = UserName;
SingleUser.UserPwd = UserPwd;
if (Users.AddUser(SingleUser))
{
this.Label1.Text = ("恭喜!您已经添加成功!");
this.GridView1.DataBind(); }
else
{
this.Label1.Text = ("抱歉!你没有添加成功!");
}
}
}
不给分你就对不起我!!!!!!!!!!!! @v@public static string MD5(string toCryString)
{
string cryptedstring = string.Empty;
cryptedstring = System.Web.Security.FormsAuthentication.HashPasswordForStoringInConfigFile(toCryString, "MD5");
return cryptedstring;
}