What is the best free JavaScript obfuscator available as a Java library?

I know this question has been asked many times, but here are my specific needs. The obfuscator should be presented as a java library, so I can perform the Ant task to automate the build process. IE7, 8, Firefox and Chrome should be able to quickly interpret the resulting js (the source js file is quite large - 18k lines of code). If none of them satisfies these requirements, I am ready to consider a commercial solution.

+6
java javascript ant obfuscation
source share
4 answers

Some options:

(I have not used Jawr or Dojo, so I cannot comment on which is better.)

+6
source share

Google clos-compiler is another alternative.

+3
source share

There is a newer free option for Javascript Obfuscation - Roquson . They provide completely free Javascript Obfuscation with additional features such as variable rename, domain lock and expiration date.

Take a look here: http://roquson.com

+1
source share

I still believe that jsutility.pjoneil.net provides the best compression for any available program except gzip. This obfuscation support avoids most obfuscation problems. It also now supports batch operations.

0
source share

All Articles