Live data from Hacker News

Diffie-Hellman for the layman

borisreitman.medium.com

1–9 of 9 posts

Re: Diffie-Hellman for the layman

#2
So this doesn't unfortunately work with a man in the middle?

That is, how email exchange can be guaranteed to work properly, and MITM won't insert his email in the middle of the process?

Re: Diffie-Hellman for the layman

#3
post #2

So this doesn't unfortunately work with a man in the middle? That is, how email exchange can be guaranteed to work properly, and MITM won't insert his email in the middle of the process?

Yes, exactly. This is why real-world systems additionally include some kind of authentication protocol.

Reference: https://en.wikipedia.org/wiki/Man-in-the-middle_attack#Authe...

Re: Diffie-Hellman for the layman

#8
post #2

So this doesn't unfortunately work with a man in the middle? That is, how email exchange can be guaranteed to work properly, and MITM won't insert his email in the middle of the process?

The check digits solve the MITM problem. You should compare them by another channel than email, such as text message. This is called "Short Authentication String" (SAS).

Re: Diffie-Hellman for the layman

#9
I've now implemented folder encryption. If you encrypt folder 'foo', you get the file 'foo.encrypted'. When you decrypt it using the same tool, you get file 'foo.zip' which you download and uncompress into a folder 'foo'.