Analysts often get a dataset with the name and phone number columns removed and are told, “it is anonymised, use it freely.” My view, argued below, is that this sentence is usually wrong, and that the useful habit is to treat such data as pseudonymised, which is a very different thing with different obligations. Two approaches, then, and why I side with caution.
Pseudonymisation: swapping the label
Pseudonymisation replaces a direct identifier with a stand-in. Customer name becomes customer ID 48213. A mobile number becomes a code. The point is to let you still count orders per person, link tables, follow someone over time, without seeing who they are. Somewhere, a key or mapping exists that could reverse it, and that key may sit in another team’s system.
This is valuable. Analytics teams need to join a person’s orders to their support tickets, and a stable pseudonym allows that. It also reduces exposure if a file leaks or an analyst is curious. But it keeps the data about an identifiable person, in a form that can be tied back.
A common weak implementation is hashing the mobile number with no secret added. It looks irreversible. It is not, because the space of possible Indian mobile numbers is small, a few billion at most, and someone can hash every candidate and compare. A hash of a low-variety value is a lookup table waiting to be built. A keyed hash, where a secret key is mixed in and held separately, or a random token assigned from a protected mapping table, is much sturdier.
Anonymisation: removing the ability to identify
Anonymisation is a higher bar. The data should no longer identify any individual, by anyone, using reasonable means, including combination with other data. The mapping key is destroyed or never existed, and, crucially, the remaining columns cannot be used to work out who someone is.
That last part is where removal of names fails. Quasi-identifiers, which are ordinary-looking fields such as pincode, date of birth, gender, employer, or a rare product bought, can single a person out when combined. Latanya Sweeney’s well-known work showed that a few such fields could uniquely identify many people in US public datasets, and in 2008 Narayanan and Shmatikov showed that supposedly anonymous Netflix viewing records could be matched to named people by comparing with public reviews. A table with a pincode, an age and an uncommon occupation might describe one person in a small town.
Techniques that move towards real anonymity include generalisation (age bands instead of birth dates, district instead of pincode), suppression of rare combinations, and aggregation so that only group totals are shared. A concept called k-anonymity asks that every combination of quasi-identifiers appears for at least k people, so nobody is unique within the released data. For instance, if no combination of age band, district and gender occurs fewer than five times, then k is five. It is a useful test and not a guarantee: if all five people in a group share a sensitive value, such as a diagnosis, knowing the group reveals it anyway. More advanced approaches such as differential privacy add calibrated noise to results, and are used for statistical releases.
Where the law comes in
In India, the Digital Personal Data Protection Act, 2023 governs digital personal data, defined broadly as data about an individual who is identifiable by or in relation to that data. That wording points to the practical test: could the person be identified? Data that has been pseudonymised but can be linked back by you or by anyone with the key stays inside that test. Obligations such as purpose limitation and reasonable security safeguards continue to matter. I am not a lawyer, and the Act is supported by rules whose commencement is phased, so check the current position with your legal or privacy team rather than relying on a blog post, including this one. Sector rules, such as those from the RBI for financial data or IRDAI for insurance, may add their own requirements.
Which should you use, and when
- Analysis that needs to follow individuals (cohorts, churn, lifetime value): pseudonymise, hold the key separately, restrict who can see it, and treat the output as personal data.
- Sharing outside the team or the company, publishing, or handing data to a vendor for modelling: aim for aggregation or genuine anonymisation, and test it by attempting re-identification with fields an outsider could access.
- Development and testing environments: synthetic or heavily masked data where possible, not a copy of production with the name column blanked.
The trade-off is real. Each step towards anonymity costs analytical power: coarser bands blur patterns, suppression drops small groups, and without a stable ID you cannot do cohort analysis. Do not pretend this is free. The decision is what is the least identifying form that still answers the question.
Habits worth having
Collect and keep only the columns the analysis needs. Do not paste raw customer rows into spreadsheets that are emailed around, or into public AI tools. Label datasets honestly, with “pseudonymised, contains personal data” in the catalogue, so the next person does not assume otherwise. And when someone says the data is anonymous, ask the plain question: who could still work out who these people are, and how?
Figures and names in the examples are illustrative.
Leave a Reply