Quantum Security: How the BB84 Protocol Stops Eavesdropping

This article explores the foundational security guarantees of the BB84 protocol, the world's first quantum cryptography system. You will learn how BB84 shifts data security from mathematical complexity to the immutable laws of quantum physics, ensuring that any attempt to intercept a cryptographic key is immediately detected. The following sections break down the exact physical principles—specifically quantum measurement disturbance and the no-cloning theorem—that make undetected eavesdropping physically impossible.

The primary security guarantee of the BB84 protocol is unconditional, information-theoretic security for key distribution. Unlike classical encryption, which relies on math problems that are merely difficult for computers to solve, BB84 relies on the fundamental laws of quantum mechanics. It does not physically stop an eavesdropper (traditionally named "Eve") from intercepting the communication line, nor does it send secret messages directly. Instead, it is a Quantum Key Distribution (QKD) method that guarantees the communicating parties ("Alice" and "Bob") will detect Eve's presence before they ever use the generated key to encrypt sensitive data.

The Mechanics of Photon Polarization

To generate a secret key, Alice sends a series of single photons to Bob. She encodes binary data (0s and 1s) into these photons using two different polarization bases: rectilinear (vertical/horizontal) and diagonal (45-degree/135-degree).

Because Bob does not know which basis Alice used for each photon, he must randomly choose either the rectilinear or diagonal basis to measure them. If he chooses the same basis as Alice, he gets the exact bit value she sent. If he chooses the wrong basis, the laws of quantum mechanics dictate that the photon's state collapses randomly, yielding a 50% chance of getting the correct bit and a 50% chance of getting an error. After the transmission, Alice and Bob publicly compare the bases they used (without revealing the bit values) and discard all instances where their bases did not match. The remaining bits form their shared secret key.

The Measurement Disturbance Principle

The security guarantee against Eve comes into play while the photons are in transit. If Eve intercepts the photons to read the key, she faces the exact same problem as Bob: she does not know which basis Alice used.

According to Heisenberg’s Uncertainty Principle and the rules of quantum measurement, measuring a quantum system inherently alters it. When Eve guesses the wrong basis to measure a photon, she irreversibly changes its original polarization state. When she sends a replacement photon onward to Bob in that altered state, Bob will now face a 25% error rate even when he chooses the exact same basis that Alice originally used. Eve's act of looking at the data physically corrupts it.

The No-Cloning Theorem

In classical communications, a wiretapper can simply copy the signal, read the copy, and let the original pass through undetected. In quantum mechanics, the No-Cloning Theorem strictly forbids the creation of an identical copy of an arbitrary unknown quantum state.

Because of this theorem, Eve cannot duplicate Alice’s photons to store them until Alice and Bob publicly announce their bases. Eve is forced to measure the photons in real-time, which guarantees she will guess the wrong basis roughly 50% of the time, inevitably introducing errors into the system.

Detecting the Eavesdropper via Error Rates

To finalize the security guarantee, Alice and Bob sacrifice a random subset of their matched key bits and compare the actual values publicly. This allows them to calculate the Quantum Bit Error Rate (QBER).

  • No Eavesdropper: In an ideal system without Eve, the error rate is zero. In the real world, minor hardware imperfections and channel noise create a tiny, predictable baseline error rate.
  • Eavesdropper Present: If Eve has been intercepting the photons, her incorrect measurements will cause the QBER to spike significantly (up to 25% if she intercepts every photon).

The Ultimate Guarantee

If the QBER exceeds a strict mathematical threshold (typically around 11%), Alice and Bob know for a fact that the quantum channel has been compromised. Because they only transmitted a random sequence of 1s and 0s rather than an actual secret message, no sensitive information is lost. They simply discard the compromised key and try again over a different channel.

If the error rate is safely below the threshold, Alice and Bob apply classical post-processing techniques—error correction and privacy amplification—to fix any environmental noise and mathematically erase the tiny fraction of information Eve might have guessed. The final result is a shared cryptographic key that is guaranteed by the laws of physics to be completely secret.