Skip to content Skip to sidebar Skip to footer

Free Javascript Obfuscators?

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 t

Solution 1:

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:

Solution 2:

Solution 3:

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?

Solution 4:

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

Solution 5:

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

Post a Comment for "Free Javascript Obfuscators?"