Skip to main content

Computer Science · Encryption Unit · Session 5 of 8

You used at least three of these before lunch.

By now you've met symmetric encryption, public-key encryption, and hashing individually. This session is about recognising them out in the wild — in the card you tap, the health record a hospital sends, and the growing list of everyday devices that quietly depend on all three.

A phone with a payment card shown in a digital wallet, tapped against a contactless card reader.
Photo: SumUp / Unsplash

Executive summary

Goal: identify which type of encryption (or hashing) is at work in a range of real, everyday technologies, and explain the opportunity each one provides.

TimeSegment
0–10 minDiagnostic: today's encryption, counted
10–30 minExplaining contactless payments and healthcare data
30–45 minWorked example: a hospital referral
45–55 minActivity: match the technology
55–60 minExit question and key terms

Before you start​

Contactless payments​

Tapping a card or phone on an EFTPOS terminal uses a chip-based standard (EMV) that generates a unique, single-use transaction code for every single tap — even if you tap the same card on the same terminal twice in a row, the code sent is different each time. This is deliberately similar to the rolling-code garage door remote from Session 2: a fixed, reusable card number sent in the clear would be trivial to intercept and replay, so the system is built to make every transaction cryptographically unique.

When you add a card to Apple Pay or Google Pay, the system goes a step further using tokenisation: your actual card number is never stored on the phone or sent to the terminal at all. Instead, a substitute number (a token) tied to that specific phone is used, and it's meaningless if intercepted or stolen, because it can't be used anywhere else.

Activity: match the technology​

For each technology below, name which concept from this unit (symmetric encryption, public-key encryption/HTTPS, or hashing/salting) is most directly responsible for protecting it, and explain your reasoning in one sentence.

  1. A hospital's stored database of patient records, sitting on its own servers.
  2. A doctor logging into that hospital's system with a username and password.
  3. A patient's referral letter being transmitted, in real time, to a specialist at another hospital.
  4. A contactless card generating a different transaction code every time it's tapped.
Reveal model answers and check your work
  1. Symmetric encryption (AES). Large amounts of stored data are typically encrypted at rest using a fast symmetric algorithm, since there's no need to solve a key-exchange problem for data that isn't being transmitted to someone else.
  2. Hashing and salting. The login system compares a hash of the entered password against the stored, salted hash — it should never store or compare the actual password.
  3. Public-key encryption / HTTPS-style connection. Two systems that have never directly shared a key before need to establish trust and agree on a secure channel — the same key-exchange problem HTTPS solves for websites.
  4. Symmetric encryption, generating a unique code per transaction — conceptually similar to a rolling-code system, so a captured code can't simply be replayed.

Exit question​

Choose one real, everyday technology not already discussed in this session, and explain which type of encryption (or hashing) it most likely relies on, and why.

Key terms

  • EMV
  • tokenisation
  • data at rest
  • health information privacy
  1. 1
  2. 2
  3. 3
  4. 4
  5. 5
  6. 6
  7. 7
  8. 8