← Graph

How to obfuscate fields that drive app logic (e.g. patient age)?

question 2 connections

Audience asks how to obfuscate a field like date of birth when the app has logic that depends on it (e.g. kids under 3 for early intervention, triggering caretaker references). Sergyenko's answer: either write a custom generator for that field or extend Faker with your own library; in their project they shift date of birth by a small random number of days so the exact birthday is lost but the age bracket and downstream logic remain coherent — a hack that works.

answer_summary
Use a custom generator or extend Faker's dictionaries; for dates of birth, shift by a small random number of days so age bracket is preserved but exact birthday becomes untraceable.
question How to obfuscate fields that drive app logic (e.g. patient age)?
about
About preserving domain logic through obfuscation.
question How to obfuscate fields that drive app logic (e.g. patient age)?
asked_at
Asked during Q&A.

Provenance

Read by
2 extractions