security - Secured communication in a real time game -


i want create real time multiplayer game , wonder how should secure , identify each user. instance imagine have map 5 players in it, each player sends every 1/60 seconds position via udp server. how should message like? maybe udp message client server be:

repos player player id x, y

but send billions of messages server player id wants , manage every user's position. ideas how should resolved?

you rightly notice spoofing main threat here.

one way address require players sign in first. on successful sign in, give them token or temporary key , use key check validity of each message.

for checking validity, can either sign messages 1 of digital signature schemes or include secret temporary token along message.

you can further improve scheme replacing secret key every few minutes. need separate message type, has authenticated existing temporary key.


Comments

Popular posts from this blog

c# - DetailsView in ASP.Net - How to add another column on the side/add a control in each row? -

javascript - firefox memory leak -

Trying to import CSV file to a SQL Server database using asp.net and c# - can't find what I'm missing -