What BB84 Is
BB84 is a quantum cryptography protocol that allows two parties to generate a shared secret key over an insecure channel. It was proposed by Charles Bennett and Gilles Brassard in 1984, marking the first practical application of quantum mechanics to secure communication.
The protocol works by encoding information using polarization states of photons, with Alice randomly choosing between two bases for her bit encoding. Bob measures these photons using a basis he also chooses at random, leading to a key that can be used securely if both parties share enough bits in common.
How It Works
In BB84, Alice sends photons with polarization states corresponding to her bit values. She randomly selects one of two bases: rectilinear (horizontal or vertical) or diagonal (45° and 135°). Bob measures the incoming photons using a basis he also chooses at random from these same two options.
Due to quantum mechanics, if Alice and Bob choose different bases for their measurements, they will get different outcomes even though the photon's state was prepared according to one of Alice’s bases. This difference is used to detect eavesdropping.
Security Through Quantum Mechanics
The security of BB84 relies on the principles of quantum mechanics, specifically the no-cloning theorem and the Heisenberg uncertainty principle. These ensure that any attempt by an eavesdropper (Eve) to intercept and measure the photons will inevitably alter their state, thus revealing her presence.
If Alice and Bob find a significant error rate in their sifted key, they know that Eve has been measuring some of their photons, compromising the security of their communication.
Practical Implications
BB84 is not just an academic exercise but a practical tool for securing communications. Its principles have led to the development of quantum key distribution (QKD) systems, which are being used in various applications from financial transactions to military communications.
The protocol's photon-by-photon approach allows for real-time monitoring and adjustment of security parameters, making it robust against potential eavesdropping attempts.
Frequently asked questions
How does BB84 ensure the security of the key exchange?
BB84 ensures security by using quantum mechanics principles. If an eavesdropper tries to intercept and measure the photons, they will alter their state, leading to discrepancies when Alice and Bob compare their measurements.
What is QBER in BB84?
QBER stands for Quantum Bit Error Rate, which measures the error rate of the sifted key. It indicates how many bits are different between Alice's and Bob's measurements after they have discarded those where their bases did not match.
Can BB84 be used in everyday communication?
Yes, while currently more expensive and less widespread than classical encryption methods, BB84 is being integrated into various applications. It offers a higher level of security that can be crucial for sensitive communications.
What are the limitations of BB84?
BB84 requires a dedicated quantum channel, which limits its practicality in many scenarios. Additionally, it is susceptible to certain types of attacks like intercept-resend by an eavesdropper, but these can be mitigated with advanced protocols.
Try it live
Everything above runs in your browser — open BB84 Photon-by-Photon Key Sifting (2D) and change the parameters while it is running. Nothing is installed, nothing is uploaded, the whole model lives in one tab.
▶ Open BB84 Photon-by-Photon Key Sifting (2D) simulation