免费JavaScript obfuscators? [英] Free JavaScript obfuscators?

查看:173
本文介绍了免费JavaScript obfuscators?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我在寻找一个自由 JavaScript混淆器。压缩足够吗?你会推荐什么工具?当然,我不需要军用混淆,我需要一个简单方法来防止小偷偷走我的javascript通过查看源或使用简单的东西,如unescape()。 />

感谢,
汤姆

解决方案

你的问题是,你压缩它或隐藏它,最终浏览器必须解释它。最好的方法是将所有变量重命名为无意义的随机变量,并删除所有注释和空格。



几个好工具: p>


I'm looking for a free JavaScript obfuscator. Would compression be enough? What tools would you recommend? Of course, I don't need military-style obfuscation, I need a simple way to prevent kiddies from stealing my javascript by looking at the source or by using something simple such as unescape().

Thanks, Tom

解决方案

Your problem is that no matter how much you compress it or hide it, eventually the browser has to interpret it. The best you can do is renaming all variables to meaningless random vars, and removing all comments and whitespace.

A few good tools:

这篇关于免费JavaScript obfuscators?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆