FreeQuantumStore

Quantum Key Distribution (BB84)

Alice and Bob establish a secure shared key using quantum mechanics. Eve's eavesdropping is always detectable.

Protocol Animation

Eve OFF

Protocol Table (last 16 bits)

Alice BitAlice BasisBob BasisBob ResultMatch?Key

Shared Key

Alice's Key:

-

Bob's Key:

-
0
Key Bits
0%
Error Rate
0
Discarded

Error Rate Chart

--- No Eve (~0%) --- With Eve (~25%)

Controls

16
100%
BB84 Protocol:
1. Alice encodes random bits in random bases (+/x)
2. Bob measures in random bases
3. They publicly compare bases (not values!)
4. Matching bases = shared key bits
5. Sample key bits to check error rate

Security: If Eve measures a qubit, she disturbs it (no-cloning theorem). This introduces ~25% errors in matched bits, detectable by Alice and Bob.

Qubit States

+ basis: |0> = vertical, |1> = horizontal
x basis: |0> = diagonal /, |1> = diagonal \

Detection

0
Total Sent
0
Bases Match
-
Eve Detected?
Run the protocol to see if eavesdropping is detected...