Home▸Networks & Graph Theory▸Quantum Key Routing Network

Trusted-Relay Quantum Key Distribution Network

Route a session key across a multi-node QKD network: each hop runs point-to-point quantum key distribution over real fiber-loss-limited range, then XOR-relays the key hop by hop — with a compromised-relay attack to show the classic weakness of trusted-relay QKD.

Networks & Graph Theory2DModerate60 FPS📱 Mobile-adapted
quantum-quantum-cryptography-simulation ↗ Open standalone

Single-link protocols like BB84 or E91 only carry a secret key as far as fiber loss allows — past roughly 150–200 km the surviving-photon rate collapses and key generation stalls. Real QKD backbones get around this with a network of trusted relay nodes: each hop runs its own short-range point-to-point QKD session, and a session key travels end to end by being XOR-relayed against each hop's freshly generated link key, one-time-pad style. This simulator lets you pick any two nodes on a small relay network, watch the key hop across the live fiber graph using the real 10^(−αL/10) attenuation law to decide which links are even usable, and mark one relay as attacker-controlled to see the architecture's classic weak point: whoever holds a hop key also briefly holds the session key in the clear.

⚙ Under the hood

Visualize QKD in a multi-node fiber network with live key routing and trusted relays.

qkdfiber-optictrusted-relaynetwork-routingdijkstraattacker-controlkey-exchangequantum-network

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

What did you find?

Add reproduction steps (optional)