Study Guide Instructor view

Encryption

Teaching notes for Lesson 4.4, with controls for presenting it.

Keep this page on your own screen. Share only the lesson window. The lesson window holds no teaching notes, so sharing it cannot show them.

Presenting

  1. Open the lesson in its own window and share that window, not this one.
  2. Use Next and Previous here, or the lesson’s own, to move through the lesson. Next reveals one thing at a time: the next idea, or the answer to the question on screen, then the next step. Previous takes the last reveal back. The line below says what is on screen and what Next will show.
  3. Reveal hints and answers when the class is ready, and reset a demonstration before using it again.

The controls need JavaScript and a browser that supports BroadcastChannel. Without them, open the lesson in presentation mode and use its own controls.

The two windows talk to each other only inside this browser, on this device. Nothing is sent to a server, and no account is needed. A second device (a phone or another tablet) cannot follow the lesson window yet.

Lesson plan

Level
Intermediate
Time
About 60 minutes; the steps below add up to 60

Learners begin with a card payment over a café’s Wi-Fi and conclude for themselves that the packets cannot be stopped, only made useless. They scramble and unscramble words with a shift cipher to meet plaintext, ciphertext and key, learn what encryption does and does not do, and then discover the weakness of a shared key. The padlock analogy (Mira’s open padlocks and her one key) leads to asymmetric encryption, public and private keys, and a final choice between the two methods for a given job.

Objectives

  • Explain why data is encrypted when it is transmitted, and what encryption does and does not prevent
  • Use the terms plaintext, ciphertext and key correctly, and encrypt and decrypt a short message with a shift cipher
  • Describe symmetric encryption, and explain the problem of sharing the key
  • Describe asymmetric encryption, including what the public key and the private key are each used for
  • Decide whether a scenario needs symmetric or asymmetric encryption, and justify the choice

Before the lesson

  • Two paper strips with the alphabet, one that can slide against the other, for the shift cipher; or the Plain/Shifted rows on the board.
  • A real padlock and key, or a picture, for the padlock analogy; open padlocks are the central image.
  • Mini whiteboards for encrypting and decrypting words.
  • Make clear at the start that the shift cipher is a teaching tool only and is not safe.

Steps

  1. Introduction Opening

    On screen: the lesson’s title, module and number; Next adds its objectives and key terms, as the lesson page lists them; Next again begins the first step.

    Objectives on screen

    • Explain why data is encrypted when it is transmitted, and what encryption does and does not prevent
    • Use the terms plaintext, ciphertext and key correctly, and encrypt and decrypt a short message with a shift cipher
    • Describe symmetric encryption, and explain the problem of sharing the key
    • Describe asymmetric encryption, including what the public key and the private key are each used for
    • Decide whether a scenario needs symmetric or asymmetric encryption, and justify the choice

    Purpose: Learners begin with a card payment over a café’s Wi-Fi and conclude for themselves that the packets cannot be stopped, only made useless. They scramble and unscramble words with a shift cipher to meet plaintext, ciphertext and key, learn what encryption does and does not do, and then discover the weakness of a shared key. The padlock analogy (Mira’s open padlocks and her one key) leads to asymmetric encryption, public and private keys, and a final choice between the two methods for a given job.

  2. 1. Paying over a café’s Wi-Fi Think 5 min

    Purpose: Learners decide what to do when packets cannot be hidden from people nearby.

    Ask

    • Can the café stop other customers from capturing Aisha’s packets?
    • If it cannot, what could her phone do to the card number so that a captured packet is useless?

    Responses to expect

    • Probably not: a signal sent through the air reaches everyone in range
    • Scramble it so that only the ticket website can undo it

    Misconceptions to challenge

    • A learner may believe: “The café should just stop people listening.” Respond: A radio signal reaches everyone in range; ask how the café could prevent that.
    • A learner may believe: “A password on the Wi-Fi stops customers capturing packets.” Respond: Customers who know the password share the same network, so they can still capture. The data itself needs protecting.

    On the board or with the pen

    • Draw the phone, the café and a person at the next table with an arrow of packets passing near them.

    Checking understanding: Pairs write a one-sentence plan; check for ‘scramble the data’.

    English as an additional language

    • Check capture, intercept and scramble; use the word nonsense for scrambled data.

    Discussion pause: Silent thinking for thirty seconds before pairs agree a plan.

    In the lesson window

    • Think it through: Can the café stop other customers from capturing the packets? If it cannot, what could Aisha’s phone do to the card number before sending it, so that a captured packet is of no use to the person who captured it?
  3. 2. Scrambling with a secret number Discover 9 min

    Purpose: Learners encrypt with a shift of 3 before the terms are given, then name plaintext, ciphertext and key.

    Ask

    • Scramble the word GATE with a shift of 3. What does it become?
    • Which part is the plaintext, which the ciphertext, which the key?

    Responses to expect

    • JDWH
    • GATE is the plaintext, JDWH the ciphertext, 3 the key

    Misconceptions to challenge

    • A learner may believe: “The key is the ciphertext.” Respond: The key is the secret value that the process needs, here 3; the ciphertext is the scrambled message.
    • A learner may believe: “Plaintext must be text.” Respond: It is the data before encryption, even if it is a photo or a card number.
    • A learner may believe: “The same letter can become different letters in different places.” Respond: With this shift the same letter always gives the same result: both Os of BOOK become R.

    On the board or with the pen

    • Write the Plain and Shifted rows and draw arrows from G, A, T and E to J, D, W and H.

    What learners should notice

    • After Z, the alphabet goes back to A.

    Checking understanding: The encrypt-book table: watch for O becoming R twice.

    Depending on the answers

    • If learners go wrong past the end of the alphabet: use the sliding alphabet strip and count together.

    Support

    • Provide the two alphabet rows on a card or a slide-able strip.

    English as an additional language

    • Check encryption, scramble and key; use ‘plain’ as the clear message.

    In the lesson window

    • Think it through: Using this shift of 3, scramble the word GATE. What does it become?
  4. 3. Undoing it with the key Explain 10 min

    Purpose: Learners work out how to reverse a shift, with a worked example that gives the reason for each step, and see why a shift cipher is not safe.

    Ask

    • Someone who knows the key is 3 receives PHHW. How do they unscramble it?
    • What could someone who does not know the key try?

    Responses to expect

    • Move every letter back 3 places: MEET
    • Try shifts 1, 2, 3 and so on until the result reads as words: there are only 25

    Misconceptions to challenge

    • A learner may believe: “Decrypting means moving forward by the key again.” Respond: The key moved each letter forward, so undoing it moves each letter back.
    • A learner may believe: “A shift cipher is safe because the message looks like nonsense.” Respond: With only 25 possible keys anyone can try them all.
    • A learner may believe: “Real encryption is just a harder shift.” Respond: Real keys have far too many values to try; the shift cipher is only a way to see the ideas.

    On the board or with the pen

    • Write PHHW DW QRRQ and the plaintext under it letter by letter; leave spaces as they are.

    What learners should notice

    • The check step: encrypt the answer again and compare it with the ciphertext.

    Checking understanding: The decrypt-library table: C moves back to Y, past the start of the alphabet.

    Depending on the answers

    • If learners cannot handle going back past A: show Z after A on the alphabet strip and count back from C.

    Stretch

    • How many keys would a cipher need to resist trying them all? (Real keys of 128 bits.)

    Discussion pause: Ask learners to attempt PHHW alone before the worked example.

    In the lesson window

    • Think it through: Someone who knows that the key is 3 receives PHHW. How should they unscramble it? And what could someone who does not know the key try, if they have captured PHHW?
  5. 4. What encryption does, and does not do Predict 7 min

    Purpose: Learners predict what a person at the next table can and cannot do with encrypted packets, so that encryption is understood as making data useless, not invisible.

    Ask

    • With the card number encrypted, can the person at the next table still capture the packets? What can they do with them?
    • A pupil says nobody can capture the packets any more. What is the correct reply?

    Responses to expect

    • Yes, they can capture them, but the ciphertext is meaningless without the key
    • Not quite: the packets can still be captured, but the data is unreadable without the key

    Misconceptions to challenge

    • A learner may believe: “Encryption hides the packets, so nobody nearby can see or copy them (what-it-prevents option B).” Respond: Does scrambling a message change who can receive the radio signal? Think about what the person at the next table can still do.
    • A learner may believe: “Encryption makes the packets arrive faster (option C).” Respond: Does encrypting a message speed up the network? What is encryption for?
    • A learner may believe: “Encryption stops hackers from finding the data.” Respond: It does not stop interception; it makes an intercepted message meaningless.

    On the board or with the pen

    • Write ‘interception: still possible’ and ‘understanding: not possible without the key’ in two columns.

    Checking understanding: The what-it-prevents question; ask for the difference between ‘captured’ and ‘read’.

    Depending on the answers

    • If learners think encryption prevents capture: return to the radio signal at the café and ask who can still receive it.

    English as an additional language

    • Check intercept, private and unreadable.

    In the lesson window

    • Think it through: With the card number encrypted, can the person at the next table still capture the packets? What can and can’t they do with what they capture?
    • Check your understanding: A pupil says: “Now the card number is encrypted, nobody can capture the packets any more.” Which reply is correct?
  6. 5. One key for both people: symmetric encryption Discover 6 min

    Purpose: Learners discover the weakness of a shared secret key before the name symmetric encryption is given.

    Ask

    • Before the phone and the ticket website can share a secret key, one must tell the other. How could they, and what goes wrong over the same Wi-Fi?
    • What are the advantage and disadvantage of one key for both jobs?

    Responses to expect

    • Sending it over the Wi-Fi lets the person at the next table capture it and decrypt everything
    • Fast and good for large data; but the key must be shared safely first, and a different key is needed for each person

    Misconceptions to challenge

    • A learner may believe: “The key can be sent encrypted over the same Wi-Fi.” Respond: To encrypt the key they would need another key, which has to be shared in the same way: the problem comes back.
    • A learner may believe: “Symmetric means the two messages are the same.” Respond: It means the same key is used on both sides.

    On the board or with the pen

    • Draw the phone and website both holding a key labelled ‘same’, and the person at the next table capturing a copy on the way.

    Checking understanding: Ask learners to state the weakness in one sentence.

    Depending on the answers

    • If learners propose meeting in person: praise it as the real solution for small cases (the hospital backup) and ask why it does not work for millions of websites.

    English as an additional language

    • Check shared, secret and key; use ‘same key’ as a phrase.

    Discussion pause: Thirty seconds of silent thinking before sharing.

    In the lesson window

    • Think it through: Before Aisha’s phone and the ticket website can use a shared secret key, one of them has to tell the other what it is. How could they do that? What goes wrong if they send the key across the same Wi-Fi?
  7. 6. Two keys: a padlock anyone can close Explain 16 min

    Purpose: Learners invent the padlock solution, then meet public and private keys, follow a step-through, say which key decrypts, and correct a classmate who thinks the public key can read forms.

    Ask

    • How could Mira let any parent lock a form in a box so that nobody except her can open it?
    • A message was encrypted with Mira’s public key. Which key decrypts it?
    • Leo says he can use Mira’s public key to read forms. What is wrong?

    Responses to expect

    • Open padlocks for anybody to snap shut, with Mira keeping the only key
    • Mira’s private key, the other key in the same pair
    • The public key can only encrypt; only the private key decrypts

    Misconceptions to challenge

    • A learner may believe: “Mira’s public key decrypts the message because it was used to encrypt it (which-key-decrypts option A).” Respond: If the public key could decrypt the message, who else could read it? Remember the padlock.
    • A learner may believe: “A new public key made by the reader will decrypt it (option B).” Respond: A key made now has no link to the one that did the encrypting. What links the keys in a pair?
    • A learner may believe: “A public key is for decrypting, because everyone can have it (leo-reads-it option A).” Respond: Everyone can have a public key. If it could also decrypt, what would be the point of encrypting the form?
    • A learner may believe: “Leo’s own private key decrypts any form in the box (option B).” Respond: A private key only decrypts what was encrypted with its own public key. Whose public key was used here?
    • A learner may believe: “The forms are not encrypted, because the padlock only closes the box (option C).” Respond: The padlock stands for encryption. What does closing it prevent?

    On the board or with the pen

    • Draw Mira’s box with a stack of open padlocks and a single key; label padlock public key and key private key.

    What learners should notice

    • The ciphertext and the public key are both seen by the person at the next table, but neither can decrypt.

    Checking understanding: The which-key-decrypts and leo-reads-it questions, with the symmetric-or-asymmetric table last.

    Depending on the answers

    • If learners keep mixing which key does what: return to the padlock: anyone can close it, only Mira opens it; padlock is public, key is private.
    • If learners are fluent: ask how a website could use asymmetric encryption just to share a symmetric key (the Deeper note on https).

    Support

    • Provide the padlock picture with labels to refer to throughout.

    Stretch

    • Why is asymmetric encryption used only at the start of a visit to a website?

    English as an additional language

    • Check public, private, pair and padlock; hold up a padlock and a key.

    Discussion pause: Silent thinking about the padlock before any suggestion is given.

    In the lesson window

    • Think it through: Mira puts a box in the school reception. How could she let any parent lock a form in the box, so that nobody except her can open it? Think of padlocks and keys.
    • Check your understanding: A message has been encrypted with Mira’s public key. Which key will decrypt it?
    • Apply it: Leo says: “Mira’s public key is public, so I can use it to read the forms that other parents lock in the box.” What is wrong with Leo’s reasoning?
  8. 7. Show what you know Consolidate 7 min

    Purpose: Learners choose between symmetric and asymmetric encryption for a hospital backup and explain Aisha’s payment in their own words.

    Ask

    • Two hospital sites send each other a very large backup each night, with a shared secret key set up in person. Which kind of encryption, and why?
    • Explain how Aisha’s phone sends her card number safely, using plaintext, ciphertext, public key and private key.

    Responses to expect

    • Symmetric: the key is already shared safely, and it is fast for large amounts of data
    • The website sends its public key; the phone encrypts the card number with it; only the website’s private key decrypts the ciphertext

    Misconceptions to challenge

    • A learner may believe: “Asymmetric, because a public key can be sent in the open (choose-encryption option A).” Respond: Is there a public key and a private key in this description? How many keys did the engineer set up?
    • A learner may believe: “Asymmetric, because it is faster for very large files (option C).” Respond: Is asymmetric the faster of the two? Look at the comparison table again.
    • A learner may believe: “The private key is sent to the phone.” Respond: The private key is never shared. Only the public key travels.

    Checking understanding: Listen for all four terms and the correct direction of each key.

    Depending on the answers

    • If learners reverse the keys: begin the next lesson by redrawing Mira’s padlocks and asking which one is public.

    In the lesson window

    • Apply it: A hospital’s two sites, in different towns, send each other a very large backup every night. An engineer sets up a shared secret key in person, at the start. Which kind of encryption does this describe, and why does it suit the task?
    • Think it through: Explain to a friend how Aisha’s phone sends her card number to the ticket website in a way that the person at the next table cannot read. Use the words plaintext, ciphertext, public key and private key.
  9. Lesson recap Closing

    On screen: the lesson’s objectives again; Next adds the closing question, which asks the class to explain each one in their own words without looking back. It says nothing about what anyone has learnt: use the answers to decide what to revisit.

    Points to listen for

    • Encryption scrambles plaintext into ciphertext using a key. It does not stop data being intercepted; it makes intercepted data unreadable.
    • Symmetric encryption uses one shared secret key; it is fast, but the key must be shared safely first.
    • Asymmetric encryption uses a public key (shared with everyone) to encrypt and a private key (kept secret) to decrypt; no secret has to be sent, but it is slower.
    • A shift cipher has only 25 keys, so anyone can try them all; real keys have far too many values.

Consolidation

  • Encryption scrambles plaintext into ciphertext using a key. It does not stop data being intercepted; it makes intercepted data unreadable.
  • Symmetric encryption uses one shared secret key; it is fast, but the key must be shared safely first.
  • Asymmetric encryption uses a public key (shared with everyone) to encrypt and a private key (kept secret) to decrypt; no secret has to be sent, but it is slower.
  • A shift cipher has only 25 keys, so anyone can try them all; real keys have far too many values.