AntInLoop

Diffie-Hellman Game — Modular Public Key Exchange

Compute Alice and Bob public keys g^a mod p, g^b mod p and derive their identical shared secret key.

Time Complexity: O(log p)

Study the algorithm · Watch Visualizer · All Algorithm Games