首页 > 编程 > JavaScript > 正文

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

2019-11-21 02:06:23
字体:
来源:转载
供稿:网友
<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>  
发表评论 共有条评论
用户名: 密码:
验证码: 匿名发表