Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

What is the best free JavaScript obfuscator that is available as a Java library? [closed]

I know this question has been asked many times, but here are my specific needs. The obfuscator needs to come in a form of a java library, so I can make an Ant task in order to automate the build process. IE7, 8, Firefox and Chrome must be able to interpret the resulting js very fast (original js file is pretty big - 18k lines of code). If none exist which satisfy these requirements I'm willing to consider a commercial solution.

like image 970
Marre Avatar asked Oct 29 '10 08:10

Marre


Video Answer


3 Answers

Some options:

  • YUI compressor. See Julien Lecomte's blog for example use from Ant.
  • LCA Soft provide a free Ant task interface to the Dojo Toolkit compressor.
  • Jawr - Ant task.

(I've not used Jawr or Dojo, so can't comment on which is best.)

like image 167
martin clayton Avatar answered Sep 22 '22 03:09

martin clayton


Google's closure-compiler is another alternative.

like image 41
Dominic Mitchell Avatar answered Sep 25 '22 03:09

Dominic Mitchell


There is a newer free option for Javascript Obfuscation - Roquson. They provide completely free Javascript Obfuscation with additional features like Variable renaming, Domain Locking and Expiration Date.

Check it out here: http://roquson.com

like image 24
user1101329 Avatar answered Sep 24 '22 03:09

user1101329