0

I have been looking all day for a decent JavaScript obfuscator. Most of the tools I have found are quirky if useful at all.

I'm not concerned with reverse engineering. I need obfuscation to hide as much domain-specific information as possible from the user.

halfer
  • 19,824
  • 17
  • 99
  • 186
DevNull
  • 763
  • 5
  • 17
  • 30
  • http://closure-compiler.appspot.com/home – Will Sep 16 '12 at 15:11
  • What tools have you found? In what form does that domain specific information appear in your script? – Šime Vidas Sep 16 '12 at 15:12
  • 2
    http://stackoverflow.com/questions/194397/how-can-i-obfuscate-javascript – Senthil Kumar Sep 16 '12 at 15:16
  • Šime Vidas: I tried some of the following For Obfuscation: Stunnix and a couple of other products For Minification: dojo shrinksafe yui compressor google closurecompiler The domain specific information relates to names than might cue an intruder in on database names, table names etc. – DevNull Sep 16 '12 at 22:47

2 Answers2

1

Have you tried Free JavaScript Obfuscator? Its job is to make your code as unreable as possible.

There's also Google Closure Compiler if you perfer, but it doesn't obfuscate as much as the former.

David G
  • 94,763
  • 41
  • 167
  • 253
1

I always use closure compiler, which has an api as well as a gui. The gui is a bit more difficult, but once you have it set up, it compiles your code into better code and obfuscates at the same time!

Korvin Szanto
  • 4,531
  • 4
  • 19
  • 49
  • But as far as i know it does not obfuscate, only compress – DevNull Sep 16 '12 at 22:49
  • [Here's](http://www.computercabal.com/2011/04/google-closure-compiler-using.html) some articles that may [help](https://developers.google.com/closure/compiler/docs/api-tutorial3#dangers). Closure compiler compiles your code to make it unrealistic for a person to reverse engineer it. – Korvin Szanto Sep 17 '12 at 04:52