This question already has answers here:
How can I obfuscate (protect) JavaScript? [closed]
(22 answers)
Closed 9 years ago.
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?
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.
First choice is YUI compressor, second is uglifyjs.
The fist one is really good and popoular for minification (with makes obfuscuation also).
You can use one of following tools:
YUI Compressor
ShrinkSafe
Packer
Related
This question already has answers here:
Is there such a thing as a javascript deminifier (deobfuscator)? [closed]
(10 answers)
Closed 8 years ago.
This will without a doubt be a duplicate, but I have no idea what else to call it.
A friend of mine is trying to learn Javascript. He accidentally saved the "compressed" (all whitespace removed) version as the version he has, and wants me to help format it again. He's emailed me a massive .js file and... I'm not sure what to do.
I don't want to install (no doubt Eclipse has one) a Javascript plugin for Eclipse just to right click and format once. Is there a tool for this? A parser that'll build an AST then format that AST?
Tool to Unminify / Decompress JavaScript
Apparently JS beautifier will do the trick sometimes.
There's a plethora of others on there.
This question already has answers here:
How can I obfuscate (protect) JavaScript? [closed]
(22 answers)
Closed 9 years ago.
This is just a general question about jQuery...
Suppose someone made a jQuery plugin and sells it in CodeCanyon...However he used that plugin in his website and when you go to inspect element(view source) there is the code of the plugin...
Someone can just steal it from there... Is there any solution to this?
jQuery is open sourced under the MIT license, and their page here reads
The MIT License is simple and easy to understand and it places almost no restrictions on what you can do with a jQuery project.
Also, it is impossible to hide client-side Javascript from the user, as they can see whatever they want. However, you can attempt to obfuscate or uglify it to dissuade users from stealing it
There is no 100%-secure way.
a) Searching for your script in the net and sueing people who didnĀ“t pay for it
and b) Use an obfuscator to make stealing (and adapting to other sites) harder
This question already has answers here:
Closed 10 years ago.
Possible Duplicate:
How can I obfuscate JavaScript?
I want my js not to be understood by anyone. I have read some similar posts on this site but can get an exe or a full desktop application for it. Whatever I get are online tools.
OR how to sense '\n' character in js?
UglifyJS / UglifyJS2:
JavaScript parser / mangler / compressor / beautifier toolkit
You can download "yui compressor" to compress the javascript. But I does not means that no-one can read you scripts.
Their are again tool which make your compressed javascript files again readable :(
This question already has answers here:
How can I obfuscate (protect) JavaScript? [closed]
(22 answers)
Closed 9 years ago.
I am looking for the currently hardest-to-reverse JavaScript obfuscator. Bonus points if it can be run on one's own server. Performance hit and code bloat are fine.
Write it in Java, then run the bytecode in JavaScript with an obfuscated orto. That'll require two layers of decompilation in order to make any sense of it.
I'd be curious as to why you want to do this. Obfuscation offers no real protection. If you have something to protect, move it to the server-side, otherwise, why bother. If you're doing as you should and minifying/combining your JS that should be more than enough to scare away anyone not serious about knowing what your code is doing, and has performance benefits to boot. If they are serious, obfuscation isn't going to help you.
The JavaScript Code Encrypter And Obfuscator looked nice, until I actually tried to attack it. Took me about two minutes. The trivial solution:
for (i in window) { console.log(window[i]) }
That churned out a bunch of gibberish, but also the original code neatly boinked into one variable.
Note to self: Never, ever, ever, ever use anything you don't fully understand when it comes to security.
This question already has answers here:
Closed 12 years ago.
Possible Duplicate:
How can I obfuscate JavaScript?
I have been working on a web app in JavaScript. Nearing complete.
How do I protect me JavaScript code from someone copying it? I mean if you view my page source, it references the .js files and one could really steal these.
Should I be using something else? RoR?
Does Google Maps have a RoR API?
Your closest bet would be to use something like
A Javascript Obfucator
A Javascript Minifier
A Javascript Packer
People will still be able to steal and use your code though, it will just be harder to modify.