learning-it by example

Back to the video

Pseudonymise or Anonymise? Test It on Fake Data

I hashed a thousand emails. A list of guesses gave all of them back. Then I dropped the names, and 998 rows were still unique.

Video #215 ยท Data governance

Steps in the video

  1. 0:00 A hash is not anonymous
  2. 0:24 The idea
  3. 0:58 Setup
  4. 1:14 Three ways to pseudonymise
  5. 1:39 The attack
  6. 2:18 Measuring a table
  7. 2:43 The neighbour
  8. 3:33 What this does not show
  9. 4:17 Mistakes to avoid
  10. 4:37 My take and next steps
  11. 5:03 Recap

Files

  • data.py (26 lines)
  • kanon.py (54 lines)
  • pseudo.py (35 lines)

Download the code (zip)

Tested with

Python 3.12.15

What this does not show

Made-up data. The guess list holds every possible email and the join uses the same thousand people, so real results will differ. Not legal advice; the ICO guidance is under review.

Sources

Learning IT by Example.