Javascript Obfuscator to run locally which each compile
I want a free command line application or Java application that I can run on one of my JavaScript files and obfuscate it. I prefer to run it when I compile my website in visual studio locally, but it can be a software that runs locally and I will run it m开发者_如何学JAVAanually.
I want a strong obfuscator that even when reversed engineer, it will be very difficult to understand the code. My project was built with ASP.net and C# if that matters for the answer. Thanks!
I would recommend google closure compiler: http://closure-compiler.appspot.com/home to minify your JavaScript. For maximum "obfuscation", write your code so you can utilize the "advanced" optimization. You could also add all your scripts and compile them into one big chunk of minified code.
This does not make it impossible to reverse-engineer, not even difficult for the professional programmer, but it will most likely be enough trouble for most people to "steal" it, unless it’s a goldmine you are hiding.
Now, why you would want to "obfuscate" your code, and what it might be worth in your case is another debate...
Here are some interesting takes on the subject: Is using an obfuscator enough to secure my JavaScript code?
精彩评论