开发者

Hardest-To-Reverse JavaScript obfuscator [duplicate]

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开发者_JAVA技巧-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.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜