Flash games hack, score is 49700?? How to improve flash games security?

前端 未结 9 1119
梦毁少年i
梦毁少年i 2021-02-14 10:00

I have 2 flash games (written in as3). Both the highscore value being hacked. The normal range of each game score is not more than 5000 (normal users, will only get 2000 - 3000

9条回答
  •  终归单人心
    2021-02-14 10:18

    You're ultimately trying to delay the time it takes for people to hack your system, or make it not worth their while. You could try adding a salt to the hash for a bit of extra complexity. This could be sent as a value to the flash game (add it as a parameter to the flash object in the HTML) and include that in the hash verification code. You could send some kind of session id or random number so it's always different. You could even generate two hashes by different methods and check them both.

    Of course, don't discount the possibility that people have found a way to hack the actual game functionality. Or that they're just really good players...

提交回复
热议问题