javascript compressor and obfuscator tools

javascript compressor

  1. JSMin
  2. Dojo shrinksafe
  3. Packer
  4. the YUI Compressor

javascript obfuscator

  1. http://yuilibrary.com/download/yuicompressor/
  2. http://dean.edwards.name/packer/
  3. https://developers.google.com/closure/
  4. https://github.com/mishoo/UglifyJS

google closure compiler usage

 java -jar compiler.jar --js hello.js --js_output_file hello-compiled.js

perl jsPacker

参数说明:-e是混淆的程度

  1. 0=None
  2. 10=Numeric
  3. 62=Normal(alphanumeric)
  4. 95=High-ascii

一般使用62即可。

 perl jsPacker.pl -i input.js -o output.js -e62