Home▸Cybersecurity▸Diffie-Hellman Key Exchange: Modular Exponentiation Ladder and Discrete Log Cost

Diffie-Hellman Key Exchange: Modular Exponentiation Ladder and Discrete Log Cost

Two booths agree on a secret over an open cable. Pick the prime size and each side's private exponent, then watch the square-and-multiply ladder build g^a mod p one bit at a time, the public values cross the channel and both sides land on the same shared secret. An eavesdropper tap sees p, g, A and B and tries baby-step giant-step; compare its real operation count with brute force and with the handful of multiplications the honest parties need. Blender-built booths, ladder blocks, padlock, key and tap, with independent number-theory checks. Toy primes only: real exchanges use 2048-bit groups or elliptic curves.

Cybersecurity3DAdvanced60 FPS📱 Mobile-adapted🟠 Blender⇄ 2D version
Diffie-Hellman Key Exchange: Modular Exponentiation Ladder and Discrete Log Cost ↗ Open standalone

Two booths agree on a secret over an open cable. Pick the prime size and each side's private exponent, then watch the square-and-multiply ladder build g^a mod p one bit at a time, the public values cross the channel and both sides land on the same shared secret. An eavesdropper tap sees p, g, A and B and tries baby-step giant-step; compare its real operation count with brute force and with the handful of multiplications the honest parties need. Blender-built booths, ladder blocks, padlock, key and tap, with independent number-theory checks. Toy primes only: real exchanges use 2048-bit groups or elliptic curves.

⚙ Under the hood

Two booths agree on a secret over an open cable. Pick the prime size and each side's private exponent, then watch the square-and-multiply ladder build g^a mod p one bit at a time, the public values cross the channel and both sides land on the same shared secret. An eavesdropper tap sees p, g, A and B and tries baby-step giant-step; compare its real operation count with brute force and with the handful of multiplications the honest parties need. Blender-built booths, ladder blocks, padlock, key and tap, with independent number-theory checks. Toy primes only: real exchanges use 2048-bit groups or elliptic curves.

cryptographydiffie-hellmanmodular-arithmeticcybersecuritykey-exchangediscrete-logDiffie-HellmanModular ExponentiationDiscrete LogarithmSquare-and-MultiplyBaby-step Giant-stepCryptography

3D · Three.js / WebGL renderer · 60 FPS target · runs fully client-side, no install

What did you find?

Add reproduction steps (optional)