Note that there are some explanatory texts on larger screens.

plurals
  1. POSafest way to update game score from client to server database? Javascript
    primarykey
    data
    text
    <p>So I have this game that is completely run on the client. No server interaction what so ever apart from downloading the initial scripts to play the game. Anyway at the end of the game I would like for the client to send me back the scores which should be updated in the server database. Now I have come to accept the fact that there is no way on earth I can hide this from a hacker and send the scores unaltered. But I would like to know till what level can I modify the whole process that it virtually becomes pretty infeasible for the hacker manipulate the data which is being sent. For sure I would not like the score to be sent as plain text from client machine and I don't want my server to perform complex decryption algorithm. What is the best way hence to achieve considerable amount of security that every tom dick and harry doesn't hack the scores... I hope someone could provide a nice little way that I could work on... :) Thanks</p> <p>So my ideal result should be -> have trusted result from a calculation (of score) made by an untrusted party (the player)!</p> <p>-Edit-</p> <p>Someone told me something about hiding the data in a picture get request. Like, I am implementing this game on canvas (html5). So he asked me at the end of the game to fetch a game over image from my server, and they request should contain the hashed score. I did not exactly understand the complete process but if you could explain it, would be really glad! :)</p> <blockquote> <p>coda^ so you can mask the requests nicely</p> <p>shouvik how do I do it!?</p> <p>coda^ you can compose the checksum you want to submit. like 12312312a12313a232 is your md5 which contains the score. bring in an asset into the canvas like</p> <p>coda^ server.com/images/md5_hash_of_score/congratulations.png</p> <p>coda^ which you can rewrite server side via htaccess</p> </blockquote>
    singulars
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload