Html 5 games: can I protect the code anyway so that the game itself does not change during the game?

As far as I know, this is really impossible, but I just want to be sure until I get down to flash.

Can I make the html5 game safe enough so that people cannot change their score and other variables during the game?

thank!

+5
source share
4 answers

since your users can see all the source code, this is a rather complicated problem. they can easily change any function or variable at runtime without your script ever knowing. even if a sophisticated signature function is used to confirm the results.

, , colins . , , .

, . -, "" , .

, u , - .

, u -, .

:

flash SWF , , ( flash 9) useful.smth , , . md5 + . ( , ). , - ( ram , ), javascript vars , , , webkit

= > swf ""

, - ;)

+2

"", "", , - .

. , HTML Flash, . , .., ( , ).

, . - "speedhacked", , , , , - , hiscore 9999999, , Tamper Data ( Firefox) - , , , .

, HTML5 Flash.

, . . , , - . , , .

+8

, , , , . , , .

, 0...

+1

!!

Knockout.js . :

  • ViewModal
  • (, )
  • You need to save the account in the cache so that you can access it when a new valuation arrives.
  • Attach a user subscriber to these properties and write logic to verify that the score should be updated using "UNIT" at the same time (modulo I mean how you intend to update the user's score at a time). The difference between the last rating and the current account should not go beyond UNIT
  • update scroe as ViewModal.Score (newScore); // this will trigger an event for the subscriber of the observed property.!
+1
source

All Articles