Idea of Asymmetric Cryptography and Diffie-Hellman Key Exchange
Is it possible to obtain a shared secret over an open channel without handing the key to anyone?
Summary
Students study the key-distribution problem of symmetric systems (the n(n−1)/2 explosion of keys and the 'first-key paradox'), the 1976 public-key idea, one-way and trapdoor functions, and the general model of an asymmetric system. The Diffie-Hellman protocol is built up with a paint-mixing analogy and the worked example p = 23, g = 5, and its security is tied to the discrete logarithm problem (DLP, p of at least 2048 bits). The lecture then covers the man-in-the-middle attack and its defences (digital signatures, certificates/PKI), ephemeral DH with forward secrecy (TLS 1.3), and a Python simulation with pow(g, a, p).
Key terms
Lecture outline
- The key-distribution problem — the n(n−1)/2 explosion
- 1976: the birth of the public-key idea
- One-way and trapdoor functions
- The general model of an asymmetric system
- Diffie-Hellman: the paint-mixing analogy
- The protocol mathematics and a full numeric example
- The discrete logarithm — the foundation of security
- The man-in-the-middle attack and authentication
- Ephemeral DH and forward secrecy
- Python simulation and summary