Security & Cryptography
Diffie-Hellman Exchange
An interactive visual simulator demonstrating how the Diffie-Hellman Key Exchange protocol works math-wise, enabling two parties to establish a shared secret key securely.
1. Public Parameters (Shared publicly)
Alice
Private Key (a) — Hidden
—
Public Key (A = g^a mod p) — Sent
—
Shared Secret Key (s = B^a mod p)
—
Bob
Private Key (b) — Hidden
—
Public Key (B = g^b mod p) — Sent
—
Shared Secret Key (s = A^b mod p)
—