In the era of quantum computing, conventional encryption methods are becoming more vulnerable to quantum attacks and more secure communication protocols are needed. This paper describes a Quantum Secure Chat System that facilitates real-time communication between two parties through Quantum Key Distribution (QKD) using the BB84 protocol and AES-GCM encryption to protect confidentiality and integrity. The system employs QKD for key distribution and mitigates eavesdropping attempts, whereby attempted interceptions alert parties that the key cannot be trusted. In conjunction, the system employs Quantum Random Number Generation (QRNG) to mitigate the risk of non-random and biased keys. From the front end perspective, the chat system has an intuitive interface built of HTML, CSS, and JavaScript for two users to communicate in encrypted format. From the back-end, it has implemented a Django REST framework for QKD, AES encryption, and message decryption. Information about eavesdropper detection, quantum keys, cipher text, and decrypted messages is displayed to the user and aids transparency in the key exchanging and data encryption/decryption process. The system was robustly developed and tested with release candidates to establish eavesdropping detection, as well as the ability to manage encryption and decryption in an efficient manner. Furthermore, it provides evidence of a strong security capability between the combinations of QKD and AES as a solution to enable real-time messaging.
In the era of quantum computing, conventional encryption methods are becoming more vulnerable to quantum attacks and more secure communication protocols are needed. This paper describes a Quantum Secure Chat System that facilitates real-time communication between two parties through Quantum Key Distribution (QKD) using the BB84 protocol and AES-GCM encryption to protect confidentiality and integrity. The system employs QKD for key distribution and mitigates eavesdropping attempts, whereby attempted interceptions alert parties that the key cannot be trusted. In conjunction, the system employs Quantum Random Number Generation (QRNG) to mitigate the risk of non-random and biased keys. From the front end perspective, the chat system has an intuitive interface built of HTML, CSS, and JavaScript for two users to communicate in encrypted format. From the back-end, it has implemented a Django REST framework for QKD, AES encryption, and message decryption. Information about eavesdropper detection, quantum keys, cipher text, and decrypted messages is displayed to the user and aids transparency in the key exchanging and data encryption/decryption process. The system was robustly developed and tested with release candidates to establish eavesdropping detection, as well as the ability to manage encryption and decryption in an efficient manner. Furthermore, it provides evidence of a strong security capability between the combinations of QKD and AES as a solution to enable real-time messaging.
Quantum computing technologies are rapidly evolving and are expected to challenge the security of traditional cryptographicsystems in the near future. To address this issue, this research introduces a secure two-way communication framework based onthe BB84 Quantum Key Distribution (QKD) protocol combined with AES-GCM encryption. The proposed system establishesquantum-generated secret keys between two communicating nodes and uses those keys for authenticated symmetric encryption.The implementation includes dynamic key pool management, automatic key regeneration, Quantum Bit Error Rate (QBER)analysis, eavesdropper detection, and real-time secure communication monitoring. A Streamlit-based graphical interface enablesvisualization of quantum transmission behavior, communication status, encrypted message exchange, and channel securitymetrics. Experimental observations show that the system successfully detects interception attempts through increased QBERwhile maintaining reliable communication under secure channel conditions. The developed framework demonstrates thepracticality of integrating quantum key exchange mechanisms with modern encryption methods for next-generation securecommunication systems.
As quantum computing continues to advance, many of the encryption methods used in today’s chat applications may no longer be secure. Techniques like RSA and Elliptic Curve Cryptography, which are currently reliable, could be broken by quantum algorithms such as Shor’s algorithm, creating risks for private communication. To address this issue, the project presents a Post-Quantum Secure Chat Application designed to remain secure even in the future. It uses Quantum Key Distribution(QKD), specifically the BB84 protocol, to generate and share encryption keys safely. Since measuring a quantum state changes it, any attempt to intercept the key can be detected. In this system, the key exchange process is simulated using quantum tools. If interference occurs, errors appear, alerting the system. Once a secure key is established, messages are encrypted using quantum-resistant methods to ensure privacy. The application includes a simple web interface for real-time messaging, a backend for handling users and messages, and a quantum module for secure key generation. The results show that the system enables secure communication and can detect eavesdropping attempts. Overall, this project demonstrated how quantum-based techniques can improve cybersecurity and provide a future-ready communication solution.
Quantum Key Distribution (QKD) represents a paradigm shift in cryptographic security, offering information-theoretic confidentiality based on fundamental principles of quantum mechanics rather than computational hardness assumptions. The emergence of advanced quantum processors with ever-increasing qubit counts has accelerated the timeline for cryptographically-relevant quantum computers, necessitating immediate migration to quantum-safe communication protocols. This paper introduces a comprehensive QKD-based network integrity mechanism implemented as a Flask-based web chatting application that provides end-to-end security with real-time attack detection and automated mitigation. The system integrates a complete BB84 protocol simulation with polarized photon transmission modeling, incorporating realistic quantum channel parameters including attenuation (0.2 dB/km), dark count probability (10⁻⁶), and detector efficiency (30%). The architecture comprises four integrated modules: Quantum Key Distribution Engine implementing the full BB84 protocol stack with adaptive basis selection and error reconciliation; Secure Chat Interface supporting multi-user rooms, private messaging, and file sharing with one-time pad encryption using quantum-generated keys refreshed at optimal intervals; Network Integrity Monitor employing statistical analysis and machine learning techniques to detect eavesdropping attempts through quantum bit error rate (QBER) analysis, timing anomalies, and photon statistics; Automated Mitigation System that quarantines detected attackers through session termination, IP blacklisting, key revocation, and emergency key regeneration. Experimental evaluation demonstrates detection rates of 99.7% for intercept-resend attacks at 24.8% QBER, 98.2% for photon number splitting attacks at 15.3% QBER, and 99.1% for man-in-the-middle attacks at 18.7% QBER. The system achieves key generation rates of 1.82 kbps over 10 km simulated fiber, with 1.8-second quarantine response time meeting stringent incident response requirements. Scalability testing confirms support for 5,000+ concurrent users with 320 ms response time, making the solution suitable for production deployment. This work represents the first production-ready integration of quantum key distribution with a complete web chat application featuring automated attack detection and mitigation, bridging the gap between theoretical quantum cryptography and practical secure communication tools.
Quantum Key Distribution (QKD) represents a paradigm shift in cryptographic security, offering information-theoretic confidentiality based on fundamental principles of quantum mechanics rather than computational hardness assumptions. The emergence of advanced quantum processors with ever-increasing qubit counts has accelerated the timeline for cryptographically-relevant quantum computers, necessitating immediate migration to quantum-safe communication protocols. This paper introduces a comprehensive QKD-based network integrity mechanism implemented as a Flask-based web chatting application that provides end-to-end security with real-time attack detection and automated mitigation. The system integrates a complete BB84 protocol simulation with polarized photon transmission modeling, incorporating realistic quantum channel parameters including attenuation (0.2 dB/km), dark count probability (10⁻⁶), and detector efficiency (30%). The architecture comprises four integrated modules: Quantum Key Distribution Engine implementing the full BB84 protocol stack with adaptive basis selection and error reconciliation; Secure Chat Interface supporting multi-user rooms, private messaging, and file sharing with one-time pad encryption using quantum-generated keys refreshed at optimal intervals; Network Integrity Monitor employing statistical analysis and machine learning techniques to detect eavesdropping attempts through quantum bit error rate (QBER) analysis, timing anomalies, and photon statistics; Automated Mitigation System that quarantines detected attackers through session termination, IP blacklisting, key revocation, and emergency key regeneration. Experimental evaluation demonstrates detection rates of 99.7% for intercept-resend attacks at 24.8% QBER, 98.2% for photon number splitting attacks at 15.3% QBER, and 99.1% for man-in-the-middle attacks at 18.7% QBER. The system achieves key generation rates of 1.82 kbps over 10 km simulated fiber, with 1.8-second quarantine response time meeting stringent incident response requirements. Scalability testing confirms support for 5,000+ concurrent users with 320 ms response time, making the solution suitable for production deployment. This work represents the first production-ready integration of quantum key distribution with a complete web chat application featuring automated attack detection and mitigation, bridging the gap between theoretical quantum cryptography and practical secure communication tools.
Quantum cryptography using the BB84 protocol is at the forefront of modern secure communication. This paper emphasizes on BB84 protocol and its role in secure key distribution utilizing the Qiskit libraries in Python to simulate Quantum Key distribution (QKD). This QKD is then applied to the One-Time Pad algorithm for message encryption and decryption. Ensuring data confidentiality and integrity and is difficult due to advanced cyber threats and the potential of quantum computing to undermine traditional cryptographic methods. Current encryption techniques are susceptible to quantum related attacks, risking the decryption of sensitive data. Alice (sender) and Bob (receiver) use classical encryption to communicate but eavesdropper Eve with quantum capabilities, can potentially decrypt their messages. This vulnerability affects critical data security in finance, healthcare, and national security, making robust cryptographic solutions essential for maintaining trust and safety in digital communications. Our work emphasis the utilization of the quantum key generated by employing the BB84 protocol with the help of Qiskit library in python as cipher text in the process of one time pad encryption and decryption. This encrypted data dispatched between the sender and receiver to ensure maximum security, confidentiality and integrity over the period of communication.
This study introduces a secure chat application based on quantum cryptography simulation to strengthen the privacy and security of online messaging. The proposed system combines traditional chat functionality with Quantum Key Distribution (QKD) to safeguard conversations against eavesdropping and impersonation attacks. Using the BB84 quantum protocol, the application performs secure key exchange in a simulated environment, ensuring that only authorized users can access the messages. Simulation results demonstrate that the system achieves significantly better security than conventional encryption methods. This research provides a practical and straightforward framework for quantum-enhanced secure communication, highlighting its feasibility for real-world deployment in the future.