Home▸Geology & Earth Science▸Quantum Computing Quantum Cryptography Simulation

B92 Quantum Key Distribution

Interactive B92 quantum-key-distribution simulator: photons carrying non-orthogonal polarization states fly from Alice to Bob, an optional eavesdropper (Eve) intercepts and resends them, and live statistics show the sifted key growing plus the quantum-bit-error-rate spike that exposes the attack.

Geology & Earth Science2DModerate60 FPS📱 Mobile-adapted🌍 Earth
quantum-computing-quantum-cryptography-simulation ↗ Open standalone

This simulator runs the B92 quantum-key-distribution protocol photon by photon in 3D. Alice encodes each bit as one of two non-orthogonal polarization states, Bob measures every incoming photon in a randomly chosen basis and keeps only the conclusive outcomes, and the surviving bits become a shared sifted key. Flip on the eavesdropper to see an intercept-resend attack in action: Eve measures and re-prepares every photon in transit, and because she cannot reliably distinguish non-orthogonal states either, her tampering injects a measurable quantum-bit-error-rate spike into the sifted key — the live statistics panel turns the abstract "quantum security" claim into a number you can watch appear.

⚙ Under the hood

This simulation explores the fundamental principles of quantum cryptography, specifically focusing on key exchange protocols utilizing quantum properties. Users can manipulate qubits and observe how these manipulations impact encryption keys, demonstrating the security advantages offered by quantum approaches.

Quantum CryptographyKey Exchange

2D · HTML5 Canvas 2D · 60 FPS target · runs fully client-side, no install

What did you find?

Add reproduction steps (optional)