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?
Nandomo -3 Junior Poster
stultuske 1,116 Posting Maven Featured Poster
Nandomo -3 Junior Poster
stultuske 1,116 Posting Maven Featured Poster
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.