All articles| All Pictures| All Softwares| All Video| Go home page| Write articles| Upload pictures

Reading number is top 10 articles
php做饼图的函数_php资料_编程技术
在C#中使用帮助文件
在ASP.NET,Atlas中调用Web,Service—应用Cache减小服务器开销_[Asp.Net教程]
c#2.0中动态修改页面标题_.net资料_编程技术
ASP.NET实现页面间值传递的几种方法_.net资料_编程技术
SQL Server2000安装时出现错误及解决_[SQL Server教程]
用Popup对象构建网页右键菜单_JavaScript技术_编程技术
简述.net编程中容易出现的错误认识_[Asp.Net教程]
ASP.NET,2.0服务器控件之验证控件示例_[Asp.Net教程]
asp.net,2.0,权限树的控制_[Asp.Net教程]
Reading number is top 10 pictures
可爱的狗熊们
Ashlynn Brooke photograph of a group3
湖边的风景
修电脑也有这么漂亮的美女
A man's favorite things11
Plump breasts1
Household design comfortable contracted
From China fortress sora aoi4
2012 national geographic daily picture8
A man's favorite things12
Download software ranking
美女写真1
Unix video tutorial1
JSP+Ajax Web development typical examples
Tram sex maniac 2 (H) rar bag3
jdk1.6 for windows
c#程序设计案例教程
Boxer's Top ten classic battle8
虚拟机汉化软件
美女写真2
Boxer's Top ten classic battle9
aaa published in(发表于) 2013/12/17 7:55:22 Edit(编辑)
技巧应用:ASP.Net中的MD5加密_.net资料_编程技术

技巧应用:ASP.Net中的MD5加密_.net资料_编程技术

技巧应用:ASP.Net中的MD5加密_.net资料_编程技术-你的首页-uuhomepage.com

  其实在ASP.Net编程中,不用调用md5.asp来加密数据。在DotNet中有自带的类:


System.Web.Security.HashPasswordForStoringInConfigFile() 以下是引用片段:
public string md5(string str,int code)
{
if(code==16) //16位MD5加密(取32位加密的9~25字符)
{
return System.Web.Security.FormsAuthentication.HashPasswordForStoringInConfigFile(str,"MD5").ToLower().Substring(8,16) ;
}
if(code==32) //32位加密
{
return System.Web.Security.FormsAuthentication.HashPasswordForStoringInConfigFile(str,"MD5").ToLower();
}
return "00000000000000000000000000000000";
}





添加到del.icio.us 添加到新浪ViVi 添加到百度搜藏 添加到POCO网摘 添加到天天网摘365Key 添加到和讯网摘 添加到天极网摘 添加到黑米书签 添加到QQ书签 添加到雅虎收藏 添加到奇客发现 diigo it 添加到饭否 添加到飞豆订阅 添加到抓虾收藏 添加到鲜果订阅 digg it 貼到funP 添加到有道阅读 Live Favorites 添加到Newsvine 打印本页 用Email发送本页 在Facebook上分享


Disclaimer Privacy Policy About us Site Map

If you have any requirements, please contact webmaster。(如果有什么要求,请联系站长)
Copyright ©2011-
uuhomepage.com, Inc. All rights reserved.