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>