Caesar cipher
One shift for every letterReady. Press Encrypt or Decrypt.
Encrypt moves letters forward. Decrypt moves them back using the same key.
Show letter steps
Run Encrypt or Decrypt to see the steps for your message. At A or Z, continue around the alphabet.
Try it: Encrypt the example, use the result as your message, then decrypt with the same key. What do you notice?
Vigenère cipher
A keyword changes the shiftReady. Press Encrypt or Decrypt.
Encrypt moves letters forward. Decrypt moves them back using the same key.
Show letter steps
Run Encrypt or Decrypt to see the steps for your message. At A or Z, continue around the alphabet.
Try it: Encrypt the example, use the result as your message, then decrypt with the same key. What do you notice?
📊 Extension / A-level: Symmetric vs Asymmetric Encryption
Compare two approaches used in modern cryptography:
- Fast - good for large files
- Problem: How do you share the key securely?
- Examples: AES (used in WiFi, banking)
- Like a padlock with copies of the same key
- Solves key sharing - public key is... public!
- Slower - more maths involved
- Examples: RSA for public-key encryption; HTTPS uses a combination of cryptographic methods
- Like a postbox - anyone can put letters in (public), only you have the key to open it (private)
| 🔑 Symmetric | 🔑🗝️ Asymmetric | |
|---|---|---|
| Keys | 1 shared key | 2 keys (public + private) |
| Speed | Fast ⚡ | Slower 🐢 |
| Key sharing | Hard - must share secretly | Public key can be shared; verify whose key it is |
| Best for | Encrypting data (files, disks) | Exchanging keys, digital signatures |
| Real-world use | AES-256, WiFi (WPA2) | RSA, HTTPS, email signing |