1

I've finished developing in terms of js / jQuery and I was wondering if there was a plugin that can obfuscate my javascript and jQuery code while still allowing it to work.

And if possible, not slow down load times that much.

Is there such a plugin?

IrfanM
  • 715
  • 3
  • 10
  • 21
  • 1
    If you minify your code it'll be smaller and somewhat obfuscated. See http://stackoverflow.com/questions/194397/how-can-i-obfuscate-javascript?rq=1 – Ian Hunter Apr 13 '13 at 05:35
  • @IanHunter It is already minified. I know that does it somewhat, but I was looking for something that makes it hard to tell what the working code is doing due to a bunch of other code that isn't actually executed. – IrfanM Apr 13 '13 at 05:37

3 Answers3

0

First choice is YUI compressor, second is uglifyjs. The fist one is really good and popoular for minification (with makes obfuscuation also).

Piotr Stapp
  • 19,392
  • 11
  • 68
  • 116
0

You can use one of following tools:

subosito
  • 3,420
  • 2
  • 24
  • 12
0

This looks like a duplicate of How can I obfuscate (protect) JavaScript?

In short, the popular options are YUI Compressor, Google Closure Compiler, and UglifyJS. They all do minification, so you might want to not use the minified version of your project that you mention in a comment.

I personally think that Google Closure Compiler is the most thorough, but hardest to use.

Community
  • 1
  • 1
Joshua D. Boyd
  • 4,808
  • 3
  • 29
  • 44
  • I was just reading the linked questions. How does one use Google Closure Compiler ? – IrfanM Apr 13 '13 at 05:40
  • The easiest way to get started is with this: http://closure-compiler.appspot.com/home if you like the output, then see the download section here: https://developers.google.com/closure/compiler/ For maximum obfuscation, be sure to choose advanced optimizations. – Joshua D. Boyd Apr 13 '13 at 06:12