Answer the question
In order to leave comments, you need to log in
How can I implement data authentication on the game server?
For example, there is some simple network game, the essence of which is who will drive the car further or, in other words, who will score more points. To implement a leaderboard, data must be sent to the server anyway. And here the question arises - how to implement logic in which the server will understand that the data is really the result of the game, and not some "left" request sent through a REST client with twisted data?
Are there any patterns how the servers are implemented in these cases?
Answer the question
In order to leave comments, you need to log in
Encryption + authorization + verification of data for "reality", i.e. if the maximum speed of the car is 100 km / h, and the result comes from the client that he drove 1000 km in a second, then something is clearly wrong here. But even in this case, there is a chance that the program will be reversed and the left results will be sent, you can transfer the entire game process to the server, but I think this will not work in your case. In principle, it is impossible to protect yourself from cheaters 100%, because there is a chance that they will write a bot for your game.
how to implement logic in which the server will understand that the data is really the result of the game
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question