mastaH
mastaH

Reputation: 1267

How to verify data integrity between client-server connection?

I recently developed an online multiplayer game and it's working fine. There's a central server handling TCP connections with clients, and they both receive and send data.
Is there a way to verify that the data sent hasn't been modified before the receiver reads it?
Does a TCP connection handle it in some way? If not what is the best way (not asking for code) to implement it?
By now I came up with those ideas:

I searched for a common used solution but couldn't find much.
Encryption should be my last option.

Edit
For a simple way to achieve this:

  1. MD5
  2. SHA1
  3. SSL

Upvotes: 7

Views: 3092

Answers (1)

BenSchro10
BenSchro10

Reputation: 326

Agreed with Bart, you may want to look at using a Hash method for data verification.

Upvotes: 6

Related Questions