← Teacher guide

Who can see your data?

Students send a PIN past an eavesdropper on café Wi-Fi, first in plain text and then encrypted with a shift key, to explain why data must be encrypted in transit and show that encryption is reversible with the key (AC9TDI8K02 nodes 3 and 4).

Networks · Keeping it safe · about 40 minutes · Open the student lesson

Classroom resources

Open these in Waypoints Prepare with one click. To share a file another way, copy its address and paste it into Load URL, or download the file and import it. In Prepare, the worksheet's Teacher edition shows the answers; the student copy hides them.

Students will be able to

Timing

Predict and Try 6 min · Worked example 12 min · Vary 10 min · Practise and Make 12 min

Before class

Try the boards yourself.

The kit's chain for node 3: packets leave your device → travel through routers you don't control → anyone along the path can read them → so encryption is necessary. Node 4 (simple encryption) is here as a shift cipher on letters and digits, with the encrypt-decrypt cycle; the Code pathway's Secret messages course is the deeper home of ciphers (Caesar, XOR, cracking, key sharing). For students who have done it, this lesson is the why; for those who haven't, it is a first taste.

Defensive framing: the eavesdropper shows why protection matters; no attack techniques are taught.

Running the lesson

  1. Predict: students who chose "only the bank" hold Sam's misconception; trace the path after the Try.
  2. Try: ask whose Wi-Fi it is, and who else could be on it.
  3. Worked example: have students encrypt their initials with key 3.
  4. Vary: the key 10 task surprises: ask why the digits came through unchanged.
  5. Make: ask what a strong key would need (many possibilities).

In class

On the slides at these points. Students can do the whole lesson on their own; these are for the room. In the deck, the Run, Modify and Make slides have the live playground in them (the tutorial link is the backup), and the notes above are in each slide's speaker notes.

The hard part (on purpose)

The shared-path idea: students picture a private tube to the bank. Trace the packets on the board: whose equipment is each one?

When students get stuck

What you will seeA question to askThe fix
A student says only the receiver sees the message (Sam's mistake).Which pieces of equipment does the packet pass through?Every one of them could copy it.
A student shifts the wrong way to decrypt.Which way did encryption move the letters?Decrypt by moving back by the same key.

Answers to the checks

  1. who can read it?: You type your PIN into a website on a café's free Wi-Fi. The website has **no encryption**. Who could read the PIN on its way to the bank?
    Anyone on the path. Packets cross the café's Wi-Fi and other networks you don't control, and plain text can be read by anyone who copies them.
  2. Send it plain: Send the PIN with encryption off. What does Eve see?

    Eve copied the packets as they crossed the café Wi-Fi and read the PIN: nothing stopped her.
  3. Why on the way?: The bank keeps your PIN locked away safely once it arrives. So why did Eve still get it? Say where the PIN was when she copied it, and why she could.
    The PIN went from the phone through the café Wi-Fi and other networks before it reached the bank. (packets travel through equipment other people run and share); Anyone on that shared Wi-Fi can copy the packets as they pass. (a packet goes past everyone on the link, not only the bank); Sent as it was, the copy shows the PIN. (nothing changed it before it left the phone); So it has to be protected on the way, not only once the bank stores it. (the bank's locks only start working when the PIN arrives)
    Packets cross networks that other people share, so data needs protecting while it travels, not only where it's stored.
  4. PIN 4821 with key 3: With key 3, every letter moves 3 along (A → D) and every digit moves 3 along (7 → 0). What does **CAT 12** become?
    FDW 45
    C→F, A→D, T→W, 1→4, 2→5.
  5. Find the mistake: Sam decides whether it is safe to type a password. Click the line where the reasoning first goes wrong.
    line 3
    Line 3: the message goes to the bank, but it passes through the café Wi-Fi and other networks first, and anyone there can copy it. Without encryption, they can read it.
  6. Why reversible?: Why must encryption be **reversible**?
    The receiver must turn it back with the key
    Encrypt with the key, decrypt with the key. If it couldn't be reversed, nobody could read the message, including the bank.
  7. Encryption on: Switch encryption on and send.

    Eve copied only scrambled text, and the bank, with the key, read the PIN.
  8. Key 0: Set the key to 0 and send. What does Eve see?

    A key of 0 moves nothing, so the message is still plain: the key matters as much as the method.
  9. Key 10: Set the key to 10 and send. Look closely at the digits.

    Digits wrap round every 10, so a key of 10 leaves the PIN unchanged while the letters change. Eve still gets the PIN: a weak key.
  10. Too few keys: This shift has only 26 different keys. How could Eve break it without knowing the key?
    Try every key until the message makes sense
    Trying every key (a brute force attack) breaks it in seconds. Real encryption has so many keys that trying them all would take longer than the age of the universe.
  11. Stored or sent?: Your class marks are saved on the school's server, and the server's room is locked. A teacher opens them from home. When could someone else read them?
    On the way to the teacher's home, unless encrypted
    Stored safely is not the same as sent safely: anything crossing shared networks needs encrypting on the way too.
  12. Decrypt: A message was encrypted with key 3. You receive **KHOOR**. What did it say?
    HELLO
    Move each letter back 3: K→H, H→E, O→L, O→L, R→O.
  13. The padlock: What does the padlock in a browser's address bar mean?
    Data between you and the website is encrypted (HTTPS)
    HTTPS encrypts what travels between your browser and that website.
  14. Review: packets: Review: a packet is lost on the way. With TCP, what happens?
    It isn't confirmed, so it is sent again
    The receiver never confirms the lost packet, so TCP resends only the packet that was never acknowledged.
  15. a safe key: Encryption is on but the key is 0. Choose a key that scrambles both the letters and the digits, send the PIN, and check the bank still reads it.

    Eve copied only scrambled text, digits included, and the bank decrypted it with the key.

Solutions

One possible solution for each task. Other correct programs are fine.

Vary: one setting at a time › Encryption on

Open task: any program that does what the step asks.

Vary: one setting at a time › Key 0

Open task: any program that does what the step asks.

Vary: one setting at a time › Key 10

Open task: any program that does what the step asks.

Vary: one setting at a time › Too few keys

Open task: any program that does what the step asks.

a safe key

Open task: any program that does what the step asks.

Stretch and support

Stretch: XOR encryption (Secret messages lesson 5) works on the bits directly. Why does that suit computers better than shifting letters?

Support: An alphabet strip and a 0–9 strip to count along.

Exit ticket

Why should a password be encrypted before it is sent? Encrypt CAB with key 2.

Packets pass through equipment other people control, so anyone on the path could copy plain text. CAB → ECD.

What each step is for

Where it leads

Next: Across the internet (the whole journey, with HTTPS).

Code links: Secret messages (Caesar, cracking, XOR, key exchange) is where students build and break ciphers.