JavaScript implementation MD5 encryption

1. First to http://pajhome.org.uk/crypt/md5/ download js file.
2. Add in the paging file:
<script type="text/javascript" src="md5.js"></script>
3. Use the function hex_md5 () to encrypt

<!DOCTYPE HTML>
<html>
<head>
<meta charset="utf-8">
<title>md5加密</title>
<script type="text/ecmascript" src="md5.js"></script>
<script type="text/javascript">  
  var hash = hex_md5("123sfsa");
    alert(hash)
</script>  
</head>

<body>
</body>
</html>
Published 48 original articles · won praise 34 · Views 230,000 +

Guess you like

Origin blog.csdn.net/lzx159951/article/details/72895832