Security / Protecting code in JavaScript
Posted
by Evans
on Stack Overflow
See other posts from Stack Overflow
or by Evans
Published on 2010-05-10T07:24:17Z
Indexed on
2010/05/10
7:34 UTC
Read the original article
Hit count: 247
With all the recent hype about JavaScript and HTML5 replacing Flash, I wanted to know - How would it be possible to protect client-side js code? Of course, it is possible to obfuscate it, but that would only make it a little harder. Also, for games which submit high scores to the server, wouldn't it be incredibly easy to modify those scores before they are sent to the server? I know even Flash files can be decompiled, but they can be obfuscated and flash decompilation is not as easy as modifying data in JS - could be done easily using a plugin such as Firebug. I'd like to know everyone's views on this.
© Stack Overflow or respective owner