πŸ” How Do We Keep Secrets Online?

Encryption Explorer

Every time you log in, send a message, or buy something online, encryption scrambles your data so only the right person can read it. See how it works.

CS GCSE Β§1.5 CS A-Level Unit 3 DigiTech GCSE Β§1.1.5 DigiTech A-Level Unit 3

πŸ€” What is encryption?

Encryption turns readable data (plaintext) into scrambled nonsense (ciphertext) using a secret key. Only someone with the right key can turn it back into the original message. Without the key, it looks like random letters.

πŸ“¬ Analogy: Imagine putting a letter in a locked box. Anyone can carry the box, but only the person with the key can open it and read the letter. Encryption is the lock, and the key is... well, the key.
πŸ›οΈ Caesar Cipher
πŸ”‘ VigenΓ¨re Cipher
πŸ“Š Symmetric vs Asymmetric

πŸ›οΈ Caesar Cipher

The simplest cipher β€” shift every letter by a fixed number. Named after Julius Caesar, who used it to send secret military messages 2,000 years ago.

3
Plaintext
HELLO WORLD
β†’
Ciphertext
⚠️ Why Caesar is weak: There are only 25 possible shifts. An attacker can try all 25 in seconds β€” this is called a brute force attack. Also, letter frequency analysis works: in English, 'E' is the most common letter, so the most common letter in the ciphertext is probably 'E' shifted.