Key exchange: Diffie–Hellman
P52.asymmetric-key-exchange.01 · Audience: guest, it-ml, language-pro · Prerequisites: Symmetric encryption & modes
Symmetric encryption needs both sides to share a key — but how do they agree on one over a wire an eavesdropper is watching? Diffie–Hellman key exchange is the answer, and it is the heart of every modern TLS handshake.
You build the exchange, watch both parties arrive at the same secret, and then mount the canonical attack: a man in the middle against unauthenticated DH — the reason TLS needs certificates (the next pillar, P53).
Ask the mentor about this module
Ask a question about this content. The mentor explains and grounds its answer in what you are studying; asking is recorded as a learning signal, not a grade.
Keeping your files on this device
Off by default. The mentor always gets your file; this only decides whether your own copy stays here. Copies live in this browser only - they do not follow you to another device, and clearing site data removes them.
Rung 1 — a shared secret over a public wire
Loading exercise…
Rung 2 — break unauthenticated Diffie–Hellman (MITM)
Loading exercise…
My notes on this module
Loading your notes...
Where next?
Later in Asymmetric & Key Exchange
This module unlocks