Pick the Right Way to Store It¶
Run the Pick the Right Way to Store It MicroSim Fullscreen
About This MicroSim¶
This MicroSim puts six ways of storing data side by side. They are plain text, a plain SHA-256 hash, a salted hash with one secret salt, a password hash, readable data with encryption at rest, and a random pseudonymous ID. For each of five jobs in the dating-safety app, you pick one.
Every choice shows two panels. One says what the app can still do with the data. The other says what a thief who steals the table would get. The best method is the one that lets the app do its job and leaves the thief with the least.
The 90-day period in job 4 is an illustrative retention period.
How to Use¶
- Read the job at the top.
- Choose a storage method from the list. The two panels update to show the app's view and the thief's view. Nothing is scored yet, so try several.
- Press Check. You'll see whether your pick is the best one, and why.
- Press Next job. The five jobs come in a fixed order, and each gets one attempt.
- After job 5, the summary shows your pick and the best method for each job. Hover over a row to see the reason again.
Getting four of five right on the first attempt shows mastery.
Iframe Embed Code¶
You can add this MicroSim to any web page by adding this to your HTML:
<iframe src="https://arunbatchu.github.io/good-enough-engineering/sims/storage-method-chooser/main.html"
height="539px"
width="100%"
scrolling="no"></iframe>
Lesson Plan¶
Learning Objective¶
Recommend a storage method for each of five kinds of data in the dating-safety app, choosing the method that lets the app do its job while giving a thief who steals the table the least, with at least four of five correct.
Grade Level¶
Adult professional (Good Enough Engineering)
Duration¶
10-15 minutes
Prerequisites¶
- Hashing and why short inputs like phone numbers are easy to reverse
- Password hashing
- Salted hash with a secret salt and with a random salt per record
- Encryption at rest
- Pseudonymization
- The abuse ledger example
Common Misconceptions¶
- Hashing protects any data, including short inputs like phone numbers.
- Encryption at rest protects data from bugs in the app.
- Everything sensitive should be hashed, even data the app must show back to the member.
- Pseudonymized data no longer counts as personal data.
Activities¶
- Exploration (5 min): Before pressing Check on job 1, switch between all six methods and read both panels for each.
- Guided Practice (5 min): Work through jobs 1 to 5. For each wrong pick, compare its thief panel with the best method's thief panel.
- Assessment (5 min): Record the summary score. Four of five on the first attempt shows mastery.
Assessment¶
- Four of five jobs correct on the first attempt.
- The learner can explain why a plain hash of a phone number protects almost nothing.
- The learner can explain why an email address used to send receipts can't be hashed.
References¶
- Chapter 8: Sensitive Data - the sections "Encryption on the Wire and on the Disk" and "Hashing: Remembering Without Keeping."
- OWASP Password Storage Cheat Sheet - why passwords need a slow hash with a salt per record.