JS MD5加密
作者:佚名 发表时间:2017-07-05 16:00:12
<!DOCTYPE html>
<html lang="zh-cn">
	<head>
		<meta charset="GB2312" />
		<meta name="viewport" content="width=device-width,initial-scale=1,minimum-scale=1,maximum-scale=1,user-scalable=no" />
		<title></title>
		<script src="http://cdn.bootcss.com/blueimp-md5/1.1.0/js/md5.min.js"></script> 
		<script type="text/javascript">
		window.onload=function(){
			var hash = md5("a. 按照请求参数名称将所有请求参数按照字母先后顺序排序得到:keyvaluekeyvalue...keyvalue  字符串如:将arong=1,mrong=2,crong=3 排序为:arong=1, crong=3,mrong=2  然后将参数名和参数值进行拼接得到参数字符串:arong1crong3mrong2FDSADSAFDSAFDAS@###¥#%#¥##$#$#$#rew????~!@#¥%……&*(!@#$%^&*())"); 
		
			document.getElementById("msg").value=hash.toUpperCase();
			}
		</script>
	</head>
<!--onload="javascript:history.back();alert(1)"-->
	<body>
	<input type="text" style="width:300px;" id="msg"/>
	</body>
</html>