International Research Journal of Modernization in Engineering Technology and Science
Quantum Key Distribution Using BB84 and E91 Protocols with QIS-Kit
Abstract
The rapid advancement of quantum computing poses a significant threat to classical cryptographic systems that form the backbone of modern digital security.Algorithms such as RSA and ECC, which rely on the computational difficulty of integer factorization and discrete logarithm problems, become vulnerable to quantum attacks, particularly Shor's algorithm.This project presents a comprehensive Quantum Key Distribution (QKD) Simulator that implements the BB84 and E91 protocols using IBM's Qiskit quantum computing framework, providing an interactive platform for understanding, simulating, and analyzing quantum-safe key exchange mechanisms.The simulator features a full-stack architecture with a FastAPI backend powered by Python and Qiskit for quantum circuit execution, and a React 19 frontend with TypeScript for interactive visualization.The BB84 protocol implementation supports configurable qubit counts, multiple measurement bases (Z, X, and Diagonal), Eve's intercept-resend attack simulation with adjustable interception rates, and Quantum Bit Error Rate (QBER) calculation with a security threshold of 8.5%.The E91 protocol implementation uses entangled Bell state pairs with configurable measurement angles, CHSH inequality violation testing for quantum security verification, and reverse gate anti-eavesdropping mechanisms.Additionally, the system includes an AES encryption module that uses quantum-generated keys from BB84 and E91 simulations to perform AES-128, AES-192, and AES-256 encryption, with privacy amplification for keys shorter than the required length.A simulation history system with SQLite and PostgreSQL support enables experiment tracking, comparison, and analysis.The project demonstrates the practical application of quantum mechanics principles to cryptographic security and serves as an educational tool for understanding the transition from classical to quantum-safe cryptography.