手机
当前位置:查字典教程网 >编程开发 >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中md5加密码的方法

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

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

asp.net中导出excel数据的方法汇总

Asp.net 弹出对话框基类(输出alet警告框)

asp.net下URL网址重写成.html格式、RSS、OPML的知识总结

asp.net DiscuzNT登录,退出的代码

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

asp.net中eval不能定义变量的问题的解决方法

asp.net导出excel的简单方法

精品推荐
分类导航