Answer the question
In order to leave comments, you need to log in
Secure data transfer to the server?
Hello, I am planning to develop a JS game using socket.io and Node js on the server.
The point of the game is to score points, how can you pass the score or score gain to the server in a safe way? So that it was impossible to analyze the code and change the data when sending?
Answer the question
In order to leave comments, you need to log in
Points must be added on the server, not transferred to the server.
Use HTTPS.
All transmitted requests must be signed.
Nothing can be done safely in JS.
All critical logic must be processed by the server, the client only sends a request for the necessary actions, and the server decides whether to perform them or not.
Work through sessions
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question