当前位置: 移动技术网 > IT编程>开发语言>JavaScript > 通过Unicode转义序列来加密,按你说的可以算是混淆吧

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

2019年07月19日  | 移动技术网IT编程  | 我要评论
<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>  

如对本文有疑问, 点击进行留言回复!!

相关文章:

验证码:
移动技术网