JS生成MD5密码

 1 <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
 2 <html>
 3 <head>
 4 
 5 <title>生成md5密码</title>
 6 <script type="text/javascript" src="jquery-1.9.1.min.js"></script>
 7 <script type="text/javascript" src="jquery.md5.js"></script>
 8 
 9 <script type="text/javascript">
10     function auto(){
11         var pwd =document.getElementById("pwd").value;
12         var digest = $.md5(pwd);
13         
14         alert(digest);
15     }
16     
17 </script>
18 </head>
19   
20 <body style="background-color:black">
21 <br/>
22 <br/>
23 <br/>
24 <br/>
25 <br/>
26 <center>
27 <h1 style="color:white">JS生成md5密码</h1>
28 <form>
29 <input type="text" id ="pwd"/>
30 <input type="button" onclick="auto()" value="生成md5密码"/>
31 </form>
32 </center>
33 </body>
34 </html>

 

posted @ 2015-04-03 17:47  ZQH005  阅读(1963)  评论(0编辑  收藏  举报