I've been working on some Javascript/Canvas games and have been trying to come up with a way to store game state and data, an example of such data being high scores.
The simplest way to do this would of course be just to post the high score to a server with an http request, but that is so easy to fool, people could just make their own http request and voila, you are now the champion.
I'm asking stackoverflow if you have solutions to this problem. This is a tricky problem since the javascript code is running on the clients computer and it's human readable.
The only possible solution, or rather, deterrent, I've come up with is to obfuscate the javascript code that makes the high score post (and including a checksum / magic constant in there), at least makes the system harder to game.
Do you have any better ideas?