|
apicloud上传图片时用到的sha1.js
[复制链接]
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
<title>Examples</title>
<meta name="description" content="">
<meta name="keywords" content="">
<link href="" rel="stylesheet">
</head>
<body>
<input type="text" id="key">
<script type="text/ecmascript" src="sha1.js"></script>
<script>
window.onload = function(){
var now = Date.now();
var appKey = hex_sha1("A6982849369405"+"UZ"+"0371581E-7FAC-02B0-6795-0981841DAC51"+"UZ"+now)+"."+now ;
var key = document.getElementById('key');
key.value = appKey;
}
</script>
</body>
</html>
谁能给一份sha1.js?谢谢
发到邮箱也行
|
|