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
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.
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
This question already has answers here:
Closed 11 years ago.
Possible Duplicate:
Is it possible to hide or scramble/obfuscate the javascript code of a webpage?
Is there any way to hide the view of JavaScript code from the view page source action?
No. You can obfuscate it a lot, though.
No. It is the same with any content on the web. If you can see or hear it, you can download it.
No.
If you have sensitive algorithms or implementations, run them on the server and access them through Ajax or at the time the page is requested. Keep the javascript on your page UI-centric.
You can hide your js code to unexpert eyes using obfuscate techniques: JS obfuscate but an expert js coder can reverse engineering and understand it
This question already has answers here:
Closed 12 years ago.
Possible Duplicate:
How can I obfuscate JavaScript?
Hi there, is there any way to encrypt code written in javascript, that's displayed in the browsers window..
The below link has a similar discussion and has answer to that.
How can I encrypt JavaScript code so that it's not decryptable?
Hope this will be helpful.
You mean that you want to obfuscate your javascript code so that others cannot read it properly?
Try jCompress or any other Javascript Minifiers
There is no way to encrypt (because otherwise the browser couldn't run the code) but you can obfuscate. Just search for 'Javascript Obfuscator' .
I wouldn't recommend this though, as obfuscators can cause bugs and it is possible to deobfuscate them.
Is there any reason why you want to encrypt the javascript?
If you mean a way to encrypt it so it can't be stolen than the answer is no. The browser needs to be able to read the code to be able to execute it. There are tools to make it harder to read for humans but in the end you can't avoid people stealing your code.
Plenty of tools available on google. 1 Example: click
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.