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?
All 3 Replies
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.