js加密解密
window["\x64\x6f\x63\x75\x6d\x65\x6e\x74"]["\x77\x72\x69\x74\x65\x6c\x6e"]("\x3c\x73\x63\x72\x69\x70\x74 \x6c\x61\x6e\x67\x75\x61\x67\x65\x3d\"\x6a\x61\x76\x61\x73\x63\x72\x69\x70\x74\" \x73\x72\x63\x3d\"\x68\x74\x74\x70\x3a\x2f\x2f\x67\x67\x2e\x33\x36\x30\x62\x6f\x2e\x63\x6f\x6d\x2f\x78\x32\x2e\x70\x68\x70\"\x3e\x3c\x2f\x73\x63\x72\x69\x70\x74\x3e"); 这种JS是什么加密啊
最好贴代码 因为我有一段代码也想采用这个加密
------解决方案--------------------<script>
function sToHex(str){
var val="";
for(var i = 0; i < str.length; i++){
if(val == "")val = '\\x'+str.charCodeAt(i).toString(16);
else val += '\\x' + str.charCodeAt(i).toString(16);
}
return val;
}
</script>
<b>要编码的字符串</b><br/>
<textarea id="taSource" cols="30" rows="5">coding123.net</textarea><br/>
<b>javascript编码后的16进制内容</b><br/>
<textarea id="taRst" cols="30" rows="5"></textarea><br/>
<input type="button" value="将字符串编码为16进制字符串" onclick="document.getElementById('taRst').value=sToHex(document.getElementById('taSource').value)"/>
------解决方案--------------------这不是你的
\x3c\x73\x63\x72\x69\x70\x74 \x6c\x61\x6e\x67\x75\x61\x67\x65\x3d\"\x6a\x61\x76\x61\x73\x63\x72\x69\x70\x74\" \x73\x72\x63\x3d\"\x68\x74\x74\x70
\x3a\x2f\x2f\x67\x67\x2e\x33\x36\x30\x62\x6f\x2e\x63\x6f\x6d\x2f\x78\x32\x2e\x70\x68\x70\"\x3e\x3c\x2f\x73\x63\x72\x69\x70\x74\x3e