手机
当前位置:查字典教程网 >编程开发 >asp.net教程 >asp.net中MD5 16位和32位加密函数
asp.net中MD5 16位和32位加密函数
摘要:publicstringmd5(stringstr,intcode){if(code==16)//16位MD5加密(取32位加密的9~25字...

publicstringmd5(stringstr,intcode)

{

if(code==16)//16位MD5加密(取32位加密的9~25字符)

{

returnSystem.Web.Security.FormsAuthentication.HashPasswordForStoringInConfigFile(str,"MD5").ToLower().Substring(8,16);

}

else//32位加密

{

returnSystem.Web.Security.FormsAuthentication.HashPasswordForStoringInConfigFile(str,"MD5").ToLower();

}

}

【asp.net中MD5 16位和32位加密函数】相关文章:

asp.net自定义控件代码学习笔记

Asp.Net常用函数

asp.net(c#)判断远程图片是否存在

asp.net为网页动态添加关键词的方法

asp.net导出excel的简单方法

Asp.net(C#)文件操作函数大全

asp.net2.0如何加密数据库联接字符串

asp.net动态添加js文件调用到网页的方法

asp.net GridView 中增加记录的方法

asp.net小孔子cms中的数据添加修改

精品推荐
分类导航