Inspiration
In a world where classical encryption is constantly under threat from advancing computation and cyberattacks, we wanted to build something futuristic yet practical. Inspired by quantum mechanics and the BB84 protocol, Quantum Whisper was born — a quantum key distribution-based secure chat demo that encrypts your messages into complete gibberish, ensuring no eavesdropper can decipher your words without the right quantum key.
What it does
Quantum Whisper lets users send and receive encrypted messages using keys generated via the BB84 quantum protocol. Users can:
Enter a message and encrypt it into a visually unintelligible gibberish string.
View the quantum key used during encryption.
Decrypt received gibberish back into the original message using the correct quantum key. All this happens on a sleek, interactive web interface built for seamless demonstration of quantum-secured communication.
Add secure file/message transfer using quantum keys.
How we built it
We built Quantum Whisper using:
Python (Flask) for the backend web application.
Custom BB84 implementation to simulate quantum key exchange.
XOR-based encryption using the BB84-generated key.
HTML + CSS + JavaScript for a clean, responsive frontend UI.
Modular code structure to separate encryption logic (bb84.py, utils.py) from routing and templates.
Challenges we ran into
Simulating a realistic BB84 protocol flow while keeping it educational and user-friendly.
Ensuring the encrypted message appears truly "gibberish" with special characters and no meaningful resemblance to the original text.
Managing key reuse, key validation, and proper mapping for decryption.
UI/UX tuning to allow both encryption and decryption flows without user confusion.
Accomplishments that we're proud of
Built a fully functional quantum key-based chat demo from scratch.
Achieved true gibberish encryption output while maintaining accurate decryption.
Made quantum cryptography approachable and engaging for learners and demo audiences.
Created a presentable UI with intuitive interaction between encryption, decryption, and result display.
What we learned
Practical implementation of the BB84 protocol and how key sifting and basis matching work in real-world quantum communication.
The importance of user experience in demonstrating technical concepts.
Handling byte-to-char conversions and encoding when applying XOR encryption to variable-length strings.
Flask app structuring and clean modular development for quick iteration and debugging.
What's next for Quantum Whisper
Integrate a visual simulation of qubit transmission and measurement basis for educational value.
Explore post-quantum cryptography hybrids for stronger security layers.
Launch a hosted demo version with user sessions and shared key generation.
Built With
- bb84-protocol
- css
- flask
- html
- javascript
- quantum-cryptography
- xor-encryption


Log in or sign up for Devpost to join the conversation.