通過Unicode轉(zhuǎn)義序列來加密,按你說的可以算是混淆吧
更新時(shí)間:2007年05月06日 00:00:00 作者:
<script>
test = "我來加個(gè)密玩玩,雖然是垃圾別見怪啊!"
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 = "我來加個(gè)密玩玩,雖然是垃圾別見怪啊!"
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>
相關(guān)文章
通過Unicode轉(zhuǎn)義序列來加密,按你說的可以算是混淆吧
通過Unicode轉(zhuǎn)義序列來加密,按你說的可以算是混淆吧...2007-05-05

