So basically I am writing a tic tac toe program in java which is peer to peer using tcp sockets. The data I am transferring has to be encrypted and checksummed. I know how to implement both, yet I do not know in what order to do it in. Should I encrypt then checksum? Since I am assume bits can only be flipped on transport so it the cipher text is messed up then it won't validate with the checksum or do I checksum the plain text then encrypt it? Can someone explain this to me?

Recommended Answers

this is probably worth the read.

Jump to Post

All 3 Replies

this is probably worth the read.

I've seen this website, like I said I know how to implement cipher and use MD5 to checksum. My question is the order, which that site doesn't specify.

that site is the official tutorial about it. if the order isn't specified, maybe that has it's reasons.

Be a part of the DaniWeb community

We're a friendly, industry-focused community of 1.19 million developers, IT pros, digital marketers, and technology enthusiasts learning and sharing knowledge.