当前位置:Gxlcms > JavaScript > 通过Unicode转义序列来加密,按你说的可以算是混淆吧

通过Unicode转义序列来加密,按你说的可以算是混淆吧

时间:2021-07-01 10:21:17 帮助过:7人阅读

<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>  

人气教程排行