How does password encryption protect against man in the middle attack?

614 views

So say Eve wants to steal my email account, but I know that so I encrypt my password before sending it in a way that only I and the email provider knows how to decrypt. What prevents Eve from just copying all the bytes I send and send them as they are to login?

In: 18

6 Answers

Anonymous 0 Comments

So… when encrypting, there’s other things going on to address exactly what you’re worried about. One is what’s called chaining. It adds the previous text into the next encrypted block, so you have to successfully decrypt the previous piece to decrypt the next piece. Then you start the process off by sending a random number that’s just there to fix this problem. Since you have to unwrap the previous random number to get the chaining correct, it prevents that problem.

You’re correct about that being a problem, and it’s a huge problem. Any crypto system you build needs to change constantly so you don’t detect patterns in the codes.

You are viewing 1 out of 6 answers, click here to view all answers.