js 进行md5加密

JQmd5.js 下载:JQmd5.js

md5.js 下载:md5.js

<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <meta http-equiv="X-UA-Compatible" content="ie=edge">
    <title>test</title>
    <script src="./md5.js"></script> //md5可直接使用
    <script src="http://libs.baidu.com/jquery/2.0.0/jquery.min.js"></script>
    <script src="./JQmd5.js"></script> //JQmd5 需要引入jq
</head>
<body>
    
</body>
<script>
    var str = "abcdefg";
    console.log(hex_md5(str));
    console.log($.md5(str));
</script>
</html>

 

posted @ 2020-04-22 09:55  男孩亮亮  阅读(1211)  评论(0编辑  收藏  举报