Free JavaScript obfuscators? [closed]

五迷三道 提交于 2019-11-28 05:35:10
Loki

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:

You can use /packer/

http://dean.edwards.name/packer/

As a rule of thumb, do not use a obfuscator that uses eval since this will slow down your page, use a compressor that doesn't. This will provide obfuscation for newbies, anyone else will not be deterred by any obfuscator anyway.

Most obfuscators will create a strings representing the code in the end and then use eval, this can be undone by a simple alert statements, whats the point?

If you want simple obfuscation and excellent compression, I can recommend the YUI Compressor from Yahoo.

Check out For those looking - http://javascript-reference.info/javascript-obfuscators-review.htm - pretty good overview of JS obfuscators

I will second the recommendation for YUI Compressor as well, works very well and can compress and obfuscate, also makes recommendations on javascript coding.

I vote for Packer as well. There are online versions, Standalone Versions, and even a Console Version that I use to Automagically pack my javascripts when I build my web apps.

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!