<%#
 Copyright (C) 2017 Jian Chang <aa65535@live.com>
 Licensed to the public under the GNU General Public License v3.
-%>
<script type="text/javascript" src="<%=resource%>/md5.js"></script>
<script type="text/javascript" src="<%=resource%>/sha1.js"></script>
<script type="text/javascript" src="<%=resource%>/rsa.js"></script>
<script type="text/javascript">
		var kn = 'AC69F5CCC8BDE47CD3D371603748378C9CFAD2938A6B021E0E191013975AD683F5CBF9ADE8BD7D46B4D2EC2D78AF146F1DD2D50DC51446BB8880B8CE88D476694DFC60594393BEEFAA16F5DBCEBE22F89D640F5336E42F587DC4AFEDEFEAC36CF007009CCCE5C1ACB4FF06FBA69802A8085C2C54BADD0597FC83E6870F1E36FD';
		var ke = '010001';
		var rsa = new RSAKey();
		rsa.setPublic(kn, ke);
</script>
<% include("cbi/map") %>

<script type="text/javascript">
		<!-- var mac = document.getElementById('cbid.kuainiao.base.wanmac').value;-->
		<!--var fake_device_id = md5(mac);-->
		<!--var device_sign = "div100."+fake_device_id+md5(hex_sha1(fake_device_id+"com.xunlei.vip.swjsq68700d1872b772946a6940e4b51827e8af")); -->
		var password = document.getElementById('cbid.kuainiao.base.kuainiao_passwd').value;
		var encrypted_pwd = rsa.encrypt(md5(password));
		var kuainiao_conf_pwd=encrypted_pwd.toUpperCase();
		document.getElementById('cbid.kuainiao.base.kuainiao_config_pwd').value = kuainiao_conf_pwd;
		<!-- document.getElementById('cbid.kuainiao.base.device_sign').value = device_sign; -->
</script>
