🔐 Quantum Key Distribution: BB84 Protocol & Eavesdropper Detection (2D)
2D BB84 quantum key distribution lab: Alice and Bob exchange randomly polarized photons over a channel Eve can tap; watch basis sifting, intercept-resend attacks and the QBER rise past the abort threshold in real time.
This 2D companion runs the actual BB84 quantum-key-distribution protocol rather than decorating a 3D scene: every photon gets a genuinely random bit and basis from Alice, Bob measures with his own random basis choice, and only the photons where the two bases happened to match survive the public sifting step. Raise Eve's intercept-resend probability and watch the Quantum Bit Error Rate climb toward the ~25% ceiling that a fully tapped channel produces — cross the configurable abort threshold and the session key for that pulse gets discarded outright, the same defensive response a real BB84 receiver takes the moment it detects a listener on the line.
2D BB84 quantum key distribution lab: Alice and Bob exchange randomly polarized photons over a channel Eve can tap; watch basis sifting, intercept-resend attacks and the QBER rise past the abort threshold in real time.
2D · HTML5 Canvas 2D · 60 FPS target · runs fully client-side, no install