S
S
sema-fedotov2020-11-20 15:16:37
Game development
sema-fedotov, 2020-11-20 15:16:37

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

2 answer(s)
P
Pashenka, 2020-11-20
@like-a-boss

Points must be added on the server, not transferred to the server.

D
Developer, 2020-11-20
@samodum

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 question

Ask a Question

731 491 924 answers to any question