开发者

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

开发者 https://www.devze.com 2023-01-23 03:04 出处:网络
Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.

We don’t allow questions seeking recommendations for books, tools, software libraries, and more. You can edit the question so it can be answered with facts and citations.

Closed 7 years ago.

Improve this question

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 interpr开发者_开发百科et 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.


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.)


Google's closure-compiler is another alternative.


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


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

0

精彩评论

暂无评论...
验证码 换一张
取 消