首页 > 代码库 > 分享一个js加密的几种方法

分享一个js加密的几种方法

<!DOCTYPE html>
<html lang="en">
<head>
	<meta charset="UTF-8">
	<title>Document</title>
	<script src="http://libs.baidu.com/jquery/1.9.0/jquery.min.js"></script>
	<script src="http://www.mamicode.com/jquery.cookie.js"></script>
	<script src="http://www.mamicode.com/md5.js"></script>
</head>
<body>
	<script>
		$(document).ready(function(){
			$.cookie("taobao","23");
			$.cookie("taobao1",hex_md5("1hellow word"));
			$.cookie("taobao2",hex_md5("2hellow word"));
			$.cookie("taobao3",hex_md5("3hellow word"));
			$.cookie("taobao4",hex_md5("4hellow word"));
		
		})
	</script>
</body>
</html>

  

http://www.jb51.net/article/82831.htm

  

分享一个js加密的几种方法