views:

89

answers:

4

hello,

I need a complex js obfuscator so that the js file won't be easy to reverse with a public tool like http://jsbeautifier.org/

+1  A: 

You can shrink variable names when you use Dean Edward's packer. While this can be reversed, it does leave you with pretty unreadable code as the variables aren't easily identifiable.

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

Sohnee
Note that even Dean does not call his tool an obfuscator, but compressor.
Franci Penov
It takes 2 seconds to make the code perfectly readable :) This tool unpacks code packed by Dean Edwards packer and formats it nicely too: http://jsbeautifier.org
Jakob
yes I need something that can't be reversed so easy with jsbeautifier.org? some custom obfuscation is also welcome. It doesn't matter if the code can not be reversed after that!
overthetop
A: 

Use Packer algo http://dean.edwards.name/packer/

do check the options 'Base62 encode' and 'shrink variables'. This will obfuscate the code to a certain limit but still, as @musicfreak said, anyone who is determined can still make out the code.

Shree
A: 

You may try jscrambler.com. It's the only one I know that could help you. Check what it does.

Peter G
A: 

Google Closure Compiler.

http://code.google.com/closure/compiler/

I use it on advanced. Read the docs about exporting public methods etc. htt p://code.google.com/closure/compiler/docs/api-tutorial3.html

It rocks.

Bob
From personal experience, it doesn't obfuscate code *that* much.
strager
Did you use it on advanced? Can you provide an example of it on advanced and "not obfusticating code that much"? Would love to see.
Bob