很赞的一款Javascript压缩/混淆器

来源:互联网 发布:算法就是程序对吗 编辑:程序博客网 时间:2024/06/05 19:47

主角:Javascript Obfuscator v4.0

功能:Javascript代码压缩与混淆

点评:Javascript Obfuscator v4.0 比JS Min 和YUI Compressor 的压缩率要高,并且混淆效果更好,可以很方便的人工控制哪些名称混淆哪些不混淆,界面也非常的美观。

美中不足:是一款共享软件,试用版会有一些功能限制。

特性:

  • 能自动处理html文件中的javascript标签,html页面文件引用的关联.js文件。就像处理单独的.js文件一样方便
  • 移除注释与空白,减小文件尺寸,使载入时间减到最少。(注:这没什么,最基本的)
  • 将代码压缩为长长的一行
  • 必需的时候自动添加分号结束符
  • 创建函数名与变量名的列表
  • 根据用户的设定,生成难以读懂的或指定修改函数名和变量名
  • 同时也支持命令行

 

以下是软件发行者网站的原文:

 

New! Javascript Obfuscator v4.0 : Best JavaScript compression ratio on the Web! 

Javascript Obfuscator converts the JavaScript source code into scrambled and completely unreadable form, preventing it from analysing and theft.

Javascript Obfuscator can

  • process javascript tags in html files and all .js files associated with html pages as well as separate .js files
  • remove comments and white spaces, reducing the file size and minimizing the loading time
  • pack the code as a long line
  • add finishing ";" when appropriate
  • create a list of function and variable names
  • generate new non-understandable names and rename functions and variables depending on user settings
  • work with command line

 

Comparison Table

 

 JSMinYUI CompressorJavascript Obfuscator v4.0Jquery 1.3.2 
   124 995 bytes74 121 bytes 
59%73 117 bytes 
58%44 429 bytes 
35%MooTools 1.2.2 
   103 064 bytes78 412 bytes 
76%64 503 bytes 
63%47 026 bytes 
46%Prototype 1.6.0.2 
   130 349 bytes93 955 bytes 
72%73 511 bytes 
56%48 244 bytes 
37%



Compare how the same piece of code looks before:



and after processing by Javascript Obfuscator :





You can see the difference, can't you?

Download free trial version of Javascript Obfuscator

原创粉丝点击