通过Unicode转义序列来加密,按你说的可以算是混淆吧
更新时间:2007年05月06日 00:00:00 作者:
<script>
test = "我来加个密玩玩,虽然是垃圾别见怪啊!"
str = ""
for( i=0; i<test.length; i++ )
{
temp = test.charCodeAt(i).toString(16);
str += "\\u"+ new Array(5-String(temp).length).join("0") +temp;
}
document.write (str)
</script>
test = "我来加个密玩玩,虽然是垃圾别见怪啊!"
str = ""
for( i=0; i<test.length; i++ )
{
temp = test.charCodeAt(i).toString(16);
str += "\\u"+ new Array(5-String(temp).length).join("0") +temp;
}
document.write (str)
</script>


最新评论