Test data and masking
Build data for the test without exposing people. Learn what masking changes, what can still identify someone, and how to check and retire a test set.
L1–L4 are part of the Pro pass
L0 Explain simply
Analogy: a film set. A crew uses a prop letter instead of a customer's real letter. It needs the right shape for the scene. It does not need someone's private story. A real letter with the name painted over may still reveal who wrote it.
Daily List is a to-do list app. Tom, the tester, needs users with free and paid plans. Leo, the developer, offers a copy of the live database. Tom asks whose data is in that copy and what the test needs.
A brings real user records into another place. That can add people who can read them, extra files and new ways to send messages. Calling the place a test system does not remove privacy duties.
Tom can build a small set of invented users from the test rules. If the team needs a real-data copy, it must first check the purpose, permission and controls. Masking removes or replaces selected values. It does not by itself prove that no one can be identified.
Pseudonymisation keeps a possible link to a person through separately protected information. Anonymisation removes the ability to identify people using means reasonably likely to be used. The second claim needs evidence, not just a missing name column.
Picture limit: even data labelled synthetic can reveal private source data. Ask how it was made, and keep test messages away from real recipients.
(SYNTHETIC / TRAINING ONLY: Daily List and every person in this lesson are invented.)
PLAIN WORDS · 2 in this section
- pseudonymisation
- swapping names for codes that a key could undo
- anonymisation
- changing data so nobody can tell whom it is about
PICTURE IT
The picture is the one the lesson above opens with. The table below shows how each part of it matches the software.
THE REAL JOB Build data for the test without exposing people, as a film set uses a prop letter instead of a private letter.
- Define the test
- Check the source
- Protect links and delivery
- Verify cleanup
HOW THE PICTURE MAPS
| In the picture | In the software |
|---|---|
| A prop letter | A fixture built from the test rules |
| A real customer letter on the set | A production data copy |
| Painting over a name | Masking selected values without proving anonymity |
| A separately locked list of true names | Additional protected information that can link codes to people |
WHERE THIS PICTURE STOPS
- A prop can be clearly fake, but test data must still exercise the feature.
- Hiding a name can leave other clues to a person.
- A generator can reveal private source information; appearance is not a privacy test.
HOOK
Fit the test. Check the source. Protect the person.
REMEMBER IT THIS WAY
A rule of thumb: if you see this, think that.
Before you copy live data, ask what the test needs and whose data is in the copy.
| In the trick | What it stands for |
|---|---|
| What the test needs | the cases the feature must exercise |
| Whose data | whether records or a model came from private source data |
The question starts a review but does not replace permission, privacy checks or controlled delivery.
TELL A FRIEND
Use a prop letter for the scene, not a private letter with its name painted over. needs useful shapes and a checked source.
OFTEN MIXED UP WITH Privacy checks. Privacy checks covers how the app treats . This lesson applies that care to the records used for testing.
Sources & standards — 4 sources
- Regulatory guidance
De-Identifying Government Datasets: Techniques and Governance (NIST SP 800-188) ↗ — National Institute of Standards and Technology (NIST) · NIST SP 800-188, final September 2023: sections 4.3.1–4.3.2 (printed pp. 51–52), 4.4 (pp. 61–66), 4.6 (pp. 68–71) and 5.2.1–5.3 (pp. 73–74). Primary PDF passages opened 8 November 2026. Technical guidance, not a legal determination.
Final September 2023 publication. Primary PDF opened 8 November 2026: sections 4.3.1–4.3.2, 4.4, 4.6 and 5.2.1–5.3. Covers protected mappings, hashing risks, synthetic-data leakage, usefulness and privacy validation, and masking-tool limits. Technical guidance, not a GDPR legal determination. Table 3 on printed p. 62 was visually inspected as a possible teaching visual; no source image integrated. PDF authority page states this publication is not subject to copyright in the United States and attribution is appreciated.
- Official requirement
Regulation (EU) 2016/679 — data protection principles, definitions and security ↗ — European Union · Regulation (EU) 2016/679, original OJ text, Recital 26 and Articles 4(1), 4(5), 5, 6 and 32. Primary PDF passages opened 8 November 2026. EU scope; not a full latest-case-law or national-law review.
Primary original OJ PDF opened 8 November 2026 at https://eur-lex.europa.eu/eli/reg/2016/679/oj/eng/pdf . Read Recital 26, Articles 4(1), 4(5), 5, 6 and 32 for test-data teaching. Existing Article 5 uses remain valid. This is not a complete later-amendment, case-law or national-law audit. Do not infer a universal test-data retention period or permission to copy production data.
- Official requirement
Reserved Top Level DNS Names ↗ — RFC Editor / Internet Engineering Task Force · RFC 2606, June 1999, sections 2–3 and 5: reserved test/example domain names and conflicts with real names. Primary text opened 8 November 2026. Reservation alone is not an outbound-message control.
RFC2606 / BCP32,June1999. Actual read scope: Complete substantive abstract and sections1–5 lines18–144; copyrightstatement193–219 observed. Limits: Does not guarantee invented person names are unique or establish anonymisation; controlled test delivery still required. No figure copied or integrated. Reopened sections 2–3 and 5 on 8 November 2026 for test-data masking. No source art copied.
- Simplified educational illustration
Payments Signal editorial teaching models — Payments Signal · Daily List worked fixture, test checks, delivery sink and cleanup plan; authored application of the cited principles.
What this simplifies: Invented users, identifiers, counts and test results. No production export, privacy certification or universal retention period is implied.
Used wherever diagrams, scenarios, figures, or example values are didactic constructions rather than sourced facts; every such use carries a simplifications disclosure. All people, companies, banks, and list entries in examples are fictional.
PRACTISE AND KEEP
Sources for this topic — 4 sources
- Regulatory guidance
De-Identifying Government Datasets: Techniques and Governance (NIST SP 800-188) ↗ — National Institute of Standards and Technology (NIST) · NIST SP 800-188, final September 2023: sections 4.3.1–4.3.2 (printed pp. 51–52), 4.4 (pp. 61–66), 4.6 (pp. 68–71) and 5.2.1–5.3 (pp. 73–74). Primary PDF passages opened 8 November 2026. Technical guidance, not a legal determination.
Final September 2023 publication. Primary PDF opened 8 November 2026: sections 4.3.1–4.3.2, 4.4, 4.6 and 5.2.1–5.3. Covers protected mappings, hashing risks, synthetic-data leakage, usefulness and privacy validation, and masking-tool limits. Technical guidance, not a GDPR legal determination. Table 3 on printed p. 62 was visually inspected as a possible teaching visual; no source image integrated. PDF authority page states this publication is not subject to copyright in the United States and attribution is appreciated.
- Official requirement
Regulation (EU) 2016/679 — data protection principles, definitions and security ↗ — European Union · Regulation (EU) 2016/679, original OJ text, Recital 26 and Articles 4(1), 4(5), 5, 6 and 32. Primary PDF passages opened 8 November 2026. EU scope; not a full latest-case-law or national-law review.
Primary original OJ PDF opened 8 November 2026 at https://eur-lex.europa.eu/eli/reg/2016/679/oj/eng/pdf . Read Recital 26, Articles 4(1), 4(5), 5, 6 and 32 for test-data teaching. Existing Article 5 uses remain valid. This is not a complete later-amendment, case-law or national-law audit. Do not infer a universal test-data retention period or permission to copy production data.
- Official requirement
Reserved Top Level DNS Names ↗ — RFC Editor / Internet Engineering Task Force · RFC 2606, June 1999, sections 2–3 and 5: reserved test/example domain names and conflicts with real names. Primary text opened 8 November 2026. Reservation alone is not an outbound-message control.
RFC2606 / BCP32,June1999. Actual read scope: Complete substantive abstract and sections1–5 lines18–144; copyrightstatement193–219 observed. Limits: Does not guarantee invented person names are unique or establish anonymisation; controlled test delivery still required. No figure copied or integrated. Reopened sections 2–3 and 5 on 8 November 2026 for test-data masking. No source art copied.
- Simplified educational illustration
Payments Signal editorial teaching models — Payments Signal · Daily List worked fixture, test checks, delivery sink and cleanup plan; authored application of the cited principles.
What this simplifies: Invented users, identifiers, counts and test results. No production export, privacy certification or universal retention period is implied.
Used wherever diagrams, scenarios, figures, or example values are didactic constructions rather than sourced facts; every such use carries a simplifications disclosure. All people, companies, banks, and list entries in examples are fictional.
Deepest material on this page: L4 — Standards & sources. Where a topic stops short of implementation depth, that is a deliberate coverage decision, not an oversight — see coverage.