Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Free JavaScript obfuscators? [closed]

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 to prevent kiddies from stealing my javascript by looking at the source or by using something simple such as unescape().

Thanks, Tom

like image 362
Tom Avatar asked Nov 07 '08 15:11

Tom


2 Answers

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:

  • http://www.dev411.com/dojo/javascript_compressor/
  • http://javascriptcompressor.com/Default.aspx
  • http://developer.yahoo.com/yui/compressor/
like image 111
Loki Avatar answered Oct 20 '22 20:10

Loki


You can use /packer/

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

like image 34
Imran Avatar answered Oct 20 '22 19:10

Imran