MicrolearnENPTES

Key exchange

Lesson 14 of 20 · Cipher.Micro

Two strangers agree on a secret while everyone listens.

Check yourself

s = Ba mod 23 = ?

Check yourself

B = 5b mod 23 = ?

Check yourself

s = Ab mod 23 = ?

Check yourself

How do you share a key with a website?

AES needs both sides to have the same key, but you have never met the server. Sending the key over the internet would expose it. In 1976 Diffie and Hellman found a way out.

Check yourself

What does Diffie–Hellman solve?

Do it in the browser: a real cryptography tool, a short mission and instant feedback. No install.

Start this lesson — free
← Block ciphers and modesRSA: public-key encryption →

All lessons · Cipher.Micro