Skip to content

A visual BB84 Quantum Key Distribution simulator built using HTML, CSS & JS. Experience how Alice, Bob, and Eve exchange qubits, compare bases, and detect eavesdropping — all through clean, interactive visuals. Built for schools, demos, and curious learners. No quantum background needed!

Notifications You must be signed in to change notification settings

Luciferjimmy/Qryptotalk

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

QryptoTalk: BB84 Quantum Key Distribution Simulator

Experience the magic of quantum cryptography - A visually stunning, interactive simulation of the BB84 protocol that makes quantum key distribution accessible to everyone.

Features

  • Interactive Visualization: Watch as Alice sends quantum bits to Bob through an animated quantum channel
  • Eve the Eavesdropper: Toggle Eve's interference to see how quantum mechanics detects spies
  • Step-by-Step Learning: Follow each stage of the protocol with clear visual explanations
  • Realistic Physics: Accurate simulation of quantum measurements and basis mismatches
  • Error Detection: See how Alice and Bob can detect eavesdropping by comparing measurement results
  • Mobile-Friendly: Fully responsive design works on all devices

How It Works

The BB84 protocol, developed by Bennett and Brassard in 1984, uses the fundamental principles of quantum mechanics to create an unbreakable encryption key:

  1. Alice prepares qubits in random bases (rectilinear or diagonal)
  2. Bob measures each qubit in randomly chosen bases
  3. They compare basis choices to establish a shared secret key
  4. Eve's interference introduces detectable errors when she tries to intercept

This simulation brings that process to life with beautiful animations and interactive controls.

Installation

No installation needed! Just visit the live demo.

Educational Value

Perfect for:

  • Computer science students learning about cryptography
  • Physics students exploring quantum mechanics applications
  • Educators looking for engaging teaching tools
  • Anyone curious about quantum technologies

Why This Matters

In an era of increasing cyber threats, quantum cryptography offers provably secure communication. This simulation demonstrates how we can leverage the strange properties of quantum mechanics to protect our digital future.

Contributing

Found a bug? Have an improvement? Contributions are welcome!

  • Fork the repository
  • Create your feature branch (git checkout -b feature/amazing-feature)
  • Commit your changes (git commit -m 'Add some amazing feature')
  • Push to the branch (git push origin feature/amazing-feature)
  • Open a Pull Request

License

MIT License - see LICENSE for details.

Acknowledgments

Inspired by the groundbreaking work of Charles Bennett and Gilles Brassard Built with pure HTML, CSS, and JavaScript (no frameworks!) Quantum animations crafted with love and CSS magic

Live Simulation - https://qryptotalk.netlify.app/ Email - abhinaw00singh@gmail.com

About

A visual BB84 Quantum Key Distribution simulator built using HTML, CSS & JS. Experience how Alice, Bob, and Eve exchange qubits, compare bases, and detect eavesdropping — all through clean, interactive visuals. Built for schools, demos, and curious learners. No quantum background needed!

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published