Home▸Articles▸Cybersecurity

BB84 Intercept-Resend Eavesdropping Detector: Safeguarding Quantum Key Distribution

A quantum cryptography protocol that uses the principles of quantum mechanics to detect eavesdropping attempts.

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

What is BB84?

BB84 is a quantum key distribution (QKD) protocol developed by Charles Bennett and Gilles Brassard in 1984. It allows two parties to share a secret key using single photons, which are the smallest units of light. The security of BB84 relies on the principles of quantum mechanics, particularly the no-cloning theorem, which states that it is impossible to create an identical copy of an arbitrary unknown quantum state.

The protocol involves Alice sending polarized photons to Bob over a secure channel, using two bases: rectilinear (horizontal and vertical) and diagonal. Bob measures each photon with one of these two bases at random. This process generates a raw key that can be used for encryption.

How Does Intercept-Resend Work?

An eavesdropper, Eve, can attempt to intercept and resend the photons in an effort to learn the secret key. However, this action disturbs the quantum state of the photon, violating the no-cloning theorem. When Alice and Bob compare a subset of their measurements (the sifted-key), they can detect any discrepancies that indicate eavesdropping.

Eve's intercept-resend attack involves capturing photons sent by Alice, measuring them with one basis, and then resending them to Bob using another basis. This introduces errors in the key that are statistically detectable.

live demo · related simulation● LIVE

Why Does It Matter?

BB84 is crucial for secure communication because it provides a way to ensure the integrity of the shared secret key. If Eve attempts an intercept-resend attack, the quantum nature of the system will reveal her presence through increased error rates in the sifted-key.

This protocol has been tested and proven effective in various experimental setups, making it a cornerstone of modern quantum cryptography.

Real-World Applications

BB84 is used in secure communication systems to protect sensitive information. It can be applied in financial transactions, government communications, and any scenario where data security is paramount.

The protocol has inspired further research into quantum networks and the development of more advanced QKD techniques.

Frequently asked questions

How does BB84 ensure that Eve's presence can be detected?

BB84 ensures detection by comparing a subset of Alice and Bob's measurements. If there are significant errors, it indicates that an eavesdropper has tampered with the photons.

Can Eve simply guess the correct basis to avoid detection?

No, because even if Eve guesses correctly half the time, she still introduces errors when resending the photons. These errors can be statistically analyzed by Alice and Bob to detect eavesdropping.

Is BB84 practical for everyday use?

While it has been demonstrated in laboratory settings, implementing BB84 on a large scale is still challenging due to technical limitations such as photon loss over long distances and the need for precise quantum state preparation and measurement.

What are some other QKD protocols besides BB84?

Other QKD protocols include E91 (Ekert 1991), which uses entanglement, and the more recent protocol called Measurement Device Independent QKD (MDI-QKD).

Try it live

Everything above runs in your browser — open BB84 Intercept-Resend Eavesdropping Detector and change the parameters while it is running. Nothing is installed, nothing is uploaded, the whole model lives in one tab.

▶ Open BB84 Intercept-Resend Eavesdropping Detector simulation

What did you find?

Add reproduction steps (optional)