Lesson 5 of 8 · Grade 8 · Kommunikation und Sicherheit

Encryption: the padlock in the browser and the Caesar trick

Why WhatsApp and the padlock in the browser protect you, what end-to-end means, and how you can encrypt and crack messages yourself with the Caesar trick.

Encryption: the padlock in the browser and the Caesar trick

Who is reading along?

Every message you send passes through dozens of strangers' computers: your Wi-Fi, the router in the café, the provider, servers somewhere in the world. Without encryption, any of them could read along, like with a postcard.

Encryption turns your text (the plaintext) into an unreadable ciphertext. Only someone with the matching key can make it readable again.

Who is reading along?

★ Remember

Encoding is not encryption. Anyone who knows the rule can translate a QR code or Morse code back. Encryption also needs a key that only the right people have.

Encryption: the padlock in the browser and the Caesar trick

Two kinds you use every day

Transport encryption: the padlock in the browser (the "https"). Between your phone and the website nobody can read along, not even on open Wi-Fi. But: the operator of the website sees everything you enter there.

End-to-end encryption: WhatsApp, Signal, Threema. The message is encrypted on your phone and only decrypted again on the recipient's phone. Not even the provider can read it.

Two kinds you use every day

💡 Practical tip

No padlock in the browser, or the browser warns you about the site? Then never enter a password or bank details there. No matter how real the site looks.

Encryption: the padlock in the browser and the Caesar trick

The Caesar trick

Julius Caesar already encrypted messages: every letter is shifted along the alphabet by a fixed number. The key is that number.

With key 3, A becomes D, B becomes E, H becomes K:

Plaintext:  H E L L O
Ciphertext: K H O O R

Try it: encrypt your first name with key 3. At the end of the alphabet you carry on at the start, so X becomes A.

Quiz question · Join in

You intercept the ciphertext **VHFXUH**. You know it's Caesar with key 3. What does it say?

  1. SCHOOL
  2. SECURE
  3. SEARCH
  4. SINGER

No answers yet.

Scan and join in
0 answers

Try it with your phone. All visitors share this demo; it starts empty again every night.

Encryption: the padlock in the browser and the Caesar trick

Why Caesar is useless today

There are only 25 possible keys. An attacker simply tries them all. That's called brute force: not clever, but fast. A computer manages it in less than a second.

It's even faster with frequency analysis: in English, E is the most common letter. So the most common letter in the ciphertext is very likely the shifted E, and the key is already known.

Why Caesar is useless today

★ Remember

Exactly the same thing happens with short passwords: a computer tries every possibility. The more possible keys, the longer it takes. That's why long passwords and modern encryption with keys hundreds of digits long win.

Quiz question · Join in

What is true?

  1. With the padlock in the browser nobody on the Wi-Fi can read along, but the site operator can
  2. With end-to-end encryption not even the provider can read the message
  3. A QR code is secure encryption
  4. Caesar is secure because hardly anyone knows it any more

No answers yet.

Scan and join in
0 answers

Try it with your phone. All visitors share this demo; it starts empty again every night.

Word cloud · Join in

Where do you come across encryption in everyday life? One word is enough.

In the course you unlock this question live: everyone votes with their phone via QR code, and the result appears here.

Everyday example

Der Zettel in der letzten Reihe

Zwei Freunde schicken sich im Unterricht Zettel. Damit niemand mitliest, verschieben sie jeden Buchstaben um drei Stellen: aus HALLO wird KDOOR. Der Lehrer fängt den Zettel ab und liest … Buchstabensalat.

? Wie lange braucht der Lehrer, wenn er alle 25 Verschiebungen durchprobiert?

✓ Ein paar Minuten. Deshalb reicht Caesar heute nicht mehr. Das Schloss-Symbol im Browser steht für Schlüssel, bei denen Ausprobieren länger dauern würde, als es die Welt gibt.

Simulation · Encryption: the padlock in the browser and the Caesar trick

Die Caesar-Scheibe

Verschlüsselt:

25 Versuche, ein paar Sekunden: Caesar ist geknackt. Das Schloss im Browser nutzt Schlüssel mit so vielen Möglichkeiten, dass Durchprobieren länger dauert als das Alter des Universums.

Sample · lesson 5 of 8

That was the sample.

The full course “Digitale Selbstverteidigung Klasse 8: Deine Daten, deine Geräte” has 8 lessons like this.

Open lesson for reading Go to the course

✕ End presentation 1 / 14