Single lesson · Written for OCR A Level (H446)

Uses of hashing – OCR A Level Computer Science lesson (H446)

Students learn to explain how hashing is used to store passwords, check data integrity and locate records, and why it differs from encryption.

Also in a bundle Compression, Encryption, Hashing and Databases – OCR A Level Computer Science lessons (H446) 12 lessons for £45 · save 6% on buying separately

Lesson 5 of 12 in unit 12.11 Compression, Encryption, Hashing and Databases, taught in Year 12, Summer 2. It answers one big question: Why store a fingerprint of data instead of the data?

By the end, students can explain how hashing is used to store passwords, check data integrity and locate records, and why it differs from encryption.

The Build (the main task)
Explain how Shutterbox should store members' passwords using hashing, how a login is checked, and why hashing suits this better than encryption (6 marks).
Support version
The login steps (enter password → hash it → compare with the stored hash → allow or refuse) in jumbled order, and a hash · encryption comparison table.
Challenge
Explain how Shutterbox could use a hash table to find a photo's record from its ID, and what happens when two IDs hash to the same position.
Real-world link
Shutterbox's member login, and the check that a downloaded competition pack is unchanged.
Key words
Hashing, Hash function and Irreversible, each with a definition, an icon and a common mix-up on the key vocabulary slide.
Misconceptions it tackles
“Hashing is a type of encryption that can be reversed with the right key”; “Every different input gives a different hash”.
OCR H446 specification
1.3.1 (d).

Every lesson follows the same Code & Commerce structure: a Bell Task recall starter, key vocabulary with definitions and icons, short teaching chunks with a check before pupils move on, The Build (one main task), challenge questions that get harder, and an exit question. Answers reveal one at a time on the slides, and everything is editable PowerPoint and Word.

Students can do it all on paper.

Also sold in the Compression, Encryption, Hashing and Databases unit bundle, which includes the medium term plan, and in the full-year and complete-course bundles.

An independent resource written for OCR A Level Computer Science (H446). It is not endorsed by OCR or Cambridge University Press & Assessment. Programming project (NEA) lessons teach general skills on a made-up example project and give supervised time, within JCQ's rules on the help a centre may give.

What's included

  • Slide deck (PowerPoint)
  • Lesson plan (Word)
  • Worksheet (Word)
  • Support worksheet with scaffolds (Word)
  • Single-teacher licence: use and adapt it with your own classes

More for A Level Computer Science

See all

Written for the specifications named. Not endorsed by or affiliated with any exam board.