computer-science

Cryptography

The science of secrets — from ancient ciphers to modern encryption, explore how mathematics protects information in the digital age.

cryptographyencryptionRSAhashingcipherssecurityblockchain

Cryptography is the art and science of securing communication. For millennia, humans have devised clever ways to hide messages from prying eyes — from Caesar's simple letter shifts to the Enigma machine of World War II. Today, cryptography underpins the entire digital economy: every HTTPS connection, every cryptocurrency transaction, every encrypted message relies on mathematical problems that are easy to compute but practically impossible to reverse.

These simulations let you explore cryptographic concepts hands-on. Shift letters with the Caesar cipher, watch how RSA uses prime numbers to create public-key encryption, understand why hash functions are one-way streets, and see how Diffie-Hellman lets strangers agree on a secret over a public channel.

5 interactive simulations

visualization

Caesar Cipher Visualizer

Explore the oldest known encryption — rotate alphabet rings and watch plaintext transform into ciphertext with this interactive Caesar cipher.

simulation

Diffie-Hellman Key Exchange

Watch Alice and Bob agree on a shared secret over a public channel — the magic of Diffie-Hellman key exchange visualized step by step.

visualization

Cryptographic Hash Visualizer

See why cryptographic hashes are one-way streets — watch the avalanche effect flip half the bits from a single input change.

simulation

One-Time Pad / Perfect Secrecy

The only provably unbreakable cipher — see how XOR with a random key creates perfect secrecy, and why key reuse destroys it.

calculator

RSA Public Key Encryption

Watch how two prime numbers create a public-private key pair and encrypt a message step by step using RSA.