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)
β