Home▸Articles▸Quantum Physics

BB84 Eavesdropping Detection: Spot Quantum Hacks

A groundbreaking quantum cryptography protocol that uses the principles of quantum mechanics to detect eavesdroppers.

mysimulator teamUpdated June 2026≈ 3 min read▶ Open the simulation

What is BB84?

BB84 (Bennett-Brassard 1984) is a quantum key distribution protocol that allows two parties to generate a shared random secret key known only to them, which can be used for secure communication. It leverages the principles of quantum mechanics, particularly the no-cloning theorem and Heisenberg's uncertainty principle.

The protocol involves encoding information using qubits (quantum bits) in one of four possible polarization states, each representing a bit value. Alice sends these qubits to Bob through an insecure channel, while Eve tries to intercept them.

How Does BB84 Work?

In the BB84 protocol, Alice randomly chooses between two bases (rectilinear or diagonal) for each qubit she prepares. She then sends these qubits to Bob using a quantum channel. Bob also randomly selects one of the two bases for each qubit he receives and measures it accordingly.

Afterwards, Alice and Bob publicly compare their bases over an insecure classical channel without revealing the actual bit values. If they used the same basis, the qubit's state is measured; otherwise, it is discarded. This process allows them to establish a shared secret key.

live demo · related simulation● LIVE

Eavesdropping Detection

An eavesdropper like Eve can intercept and resend qubits in an attempt to gain information about the key without being detected. However, this action will alter the state of the qubit due to the no-cloning theorem, which BB84 uses to detect eavesdropping.

By comparing a subset of their bases publicly after the transmission, Alice and Bob can calculate the Quantum Bit Error Rate (QBER). If QBER is significantly higher than expected, it indicates that Eve has interfered with the communication.

Why Does It Matter?

BB84 provides a way to ensure secure communication by detecting any eavesdropping attempts. Any deviation from the expected QBER can be used as an indicator of potential interception, allowing Alice and Bob to abort the key exchange if necessary.

This protocol is crucial for modern cryptography, especially in scenarios where data security is paramount, such as financial transactions, military communications, and personal privacy.

Frequently asked questions

What happens if Eve intercepts a qubit?

Eve's attempt to measure the qubit will change its state due to the no-cloning theorem. This alteration can be detected by Alice and Bob when they compare their bases, leading to an increased QBER.

Can BB84 detect all types of eavesdropping?

BB84 is designed to detect any type of eavesdropping that involves intercepting and resending qubits. However, it cannot detect more sophisticated attacks like coherent state attacks or side-channel attacks.

How does QBER help in detecting eavesdroppers?

QBER (Quantum Bit Error Rate) measures the rate of errors in the shared key due to potential eavesdropping. If QBER is significantly higher than expected, it suggests that Eve has interfered with the communication.

Is BB84 still relevant today?

Yes, BB84 remains a fundamental protocol in quantum cryptography and continues to be used as a basis for more advanced quantum key distribution schemes. It is also an essential part of the curriculum for students studying quantum information science.

Try it live

Everything above runs in your browser — open BB84 Eavesdropping Detection: Spot Quantum Hacks and change the parameters while it is running. Nothing is installed, nothing is uploaded, the whole model lives in one tab.

▶ Open BB84 Eavesdropping Detection: Spot Quantum Hacks simulation

What did you find?

Add reproduction steps (optional)