(1)下载文件:jquery.md5.js(点我直接下载,提取码:x49b),然后导入你的项目中,例:
(2)导入文件:jquery.md5.js(点我直接下载,提取码:x49b)
<head><metacharset="UTF-8"><title>注册</title><scripttype="text/javascript"src="/js/system/jquery-1.8.3.min.js"></script><scripttype="text/javascript"src="/js/system/jquery.md5.js"></script></head>
(3)使用:$.md5(x);其中x为待加密字符串
//登录密码md5加密loginPassword=$.md5(loginPassword);
(4)效果: