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

Reading number is top 10 articles
PHP:实现给上传图片加水印的程序代码_php资料_编程技术
每个开发人员现在应该下载的十种必备工具,2_[Asp.Net教程]
ASP.NET,2.0服务器控件之客户端功能_[Asp.Net教程]
ASP.NET2.0,遍历文件夹下所有图片_[Asp.Net教程]
网页中插入视频播放代码全集_JavaScript技术_编程技术
动态网页PHP程序员的优化调试技术和技巧_php资料_编程技术
C#教程:开发UDP聊天程序使用实例
用CSS解决未知高度的DIV垂直居中的问题_[Html教程]
.NET关于同步、异步及Socket_[Asp.Net教程]
Sql,server,2005加强的十大安全举措_[SQL,Server教程]
Reading number is top 10 pictures
A man's favorite things16
Hunan province aizhai super-large suspension bridge open to traffic and 4 world first1
Born After 90 Beijing sports university campus flower photos5
随便发几张图
BingBingFan apple dew point photo gallery2
可爱的小动物
八个盛产美女的国家1
红楼梦金陵十二钗(2)
A man's favorite things6
Sora aoi mirror memorial classics5
Download software ranking
apache-tomcat-6.0.33
C语言教程TXT
Unix video tutorial10
Ashlynn Video5
C#与.NET技术平台实战演练
Unix video tutorial12
VC++6.0培训教程
仙剑奇侠传98硬盘WINXP版
dreamweaver8中文版
I'm come from Beijing2
delv published in(发表于) 2014/1/10 6:29:56 Edit(编辑)
Net2005中的MD5加密_[Asp.Net教程]

Net2005中的MD5加密_[Asp.Net教程]

Net2005中的MD5加密_[Asp.Net教程]


其实在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";
}


作者:mengyao||路鑫 来源:CSDN







添加到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.