Daxipher

Diffie-Hellman Simulator

Visualize how two parties establish a shared secret over a public channel: without ever transmitting the secret itself. The foundation of TLS key exchange.

Browser-based · No login

Parameters

2620
21520

Key Exchange Steps

Step 1: Public parameters agreed

Both Alice and Bob agree to use prime p = 23 and generator g = 5. These are public: anyone can know them.

Alice

p = 23, g = 5

Bob

p = 23, g = 5

Why quantum computers break this

Classical DH relies on the discrete logarithm problem: computing a given g^a mod p is computationally infeasible classically. But Shor's algorithm can solve this in polynomial time on a quantum computer. That's why ECDHE is being replaced by ML-KEM (Kyber) in post-quantum TLS.