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

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 developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.