Join our Newsletter — 33% off our NHI Course
Home› Guides› Hashed Emails and Identifiers: Why Hashing Is Not…
Guide Privacy & Data Protection

Hashed Emails and Identifiers: Why Hashing Is Not Anonymisation

PDF for newsletter subscribers · free to read online

← All guides
By NHI Mgmt Group, under the editorial direction of Lalit Choda Updated 27 November 2026 15 min read
On this page

A SHA-256 hash of an email address or phone number is still personal data, and treating it as anonymous is one of the most common privacy mistakes in marketing technology and data engineering. Hashed identifiers are uploaded to advertising platforms, shared with partners, written into analytics warehouses and described in privacy notices as "anonymised" or "non-identifiable". Regulators in the EU, the UK and the US have all said, in different words, that this claim does not hold. This guide explains why hashing feels anonymous, why it is not, what the EDPB, the ICO and the FTC have said, and which controls actually reduce the risk. It is written for privacy teams, martech owners and data engineers. For the wider theory of identifiability and re-identification testing, see the Anonymisation and Re-identification Risk Guide; this page focuses on hashed identifiers only.

Key takeaways

  • A hash is a stable pseudonym, not an anonymous value. The same input always gives the same output, so a hashed email works as a persistent, unique identifier that can track and link a person across datasets and over time.
  • Small input spaces defeat one-way functions. Emails, phone numbers and national IDs come from sets that can be listed, so anyone who can generate candidates can match hashes without "reversing" anything.
  • Regulators agree. The EDPB treats pseudonymised data as personal data, the ICO says to avoid hashing without a salt, pepper or key, and FTC staff wrote in July 2024 that hashing does not make data anonymous.
  • Salts do not fix linkage use cases. A per-record random salt breaks matching; a shared salt that allows matching must travel with the data and becomes a key that needs protecting.
  • Reduce what you share, then key what remains. Minimise first, then use keyed functions such as HMAC with a protected secret, clean rooms or aggregation, and describe the result honestly as pseudonymised.

Why hashing feels anonymous

Cryptographic hash functions such as SHA-256 are designed to be one-way: given only the output, there is no practical way to compute the input. The ICO describes hashing as "intended to be one-way", and that property is exactly why engineers and marketers reach for it. The output looks random, has a fixed length and reveals nothing obvious about the person behind it. For background on the functions themselves, see the Hashing Guide.

Three habits reinforce the impression:

  • Platform instructions: advertising platforms ask customers to hash data before upload. Google's Customer Match help page, for example, calls SHA-256 "the industry standard for one-way hashing" and gives normalisation rules (lowercase the email, remove spaces, phone numbers in E.164 format) so that hashes match on both sides. The point of the exercise is matching, which is the opposite of anonymity.
  • Security vocabulary carried over from passwords: teams know that passwords are stored as hashes and assume the same protection applies to identifiers. Password hashing works because a strong password has high entropy and the hash is salted per user and slow to compute. Identifiers have none of those properties.
  • Contract and notice wording: "we only share hashed data" reads as a privacy commitment, so it ends up in privacy notices, data processing agreements and sales decks without anyone testing whether the hash can be linked back.

Why it is not (dictionary and linkage)

There are two separate reasons a hashed identifier stays personal data. Either one is enough.

Small input space: matching without reversing

One-way only means the function cannot be run backwards. It does not stop anyone from running it forwards on a list of likely inputs and comparing the outputs. The EDPB guidelines on pseudonymisation make this point directly: where a known identifier is hashed without secret information, an attacker can hash candidate values and match the outputs. ENISA's 2019 report on pseudonymisation techniques analyses the same family of attacks as brute force, dictionary search and guesswork.

The size of the input space decides how easy that is:

  • Phone numbers: a national numbering plan is a bounded set. A country's mobile range of a few hundred million to a few billion numbers is small for modern hardware, so every possible number can be hashed and indexed.
  • Email addresses: the theoretical space is large, but real addresses cluster around common names, common domains and the billions of addresses already circulating in marketing lists and breach compilations. Those lists are the dictionary.
  • National and customer IDs: fixed formats with check digits shrink the space further, often to a range that can be enumerated outright.
  • Device and advertising IDs, MAC addresses: even when the space is too large to enumerate, the value does not need to be reversed to track someone, which is the second problem.

This page deliberately gives no method for matching hashes against real data. The defensive point is that the effort is low, so the design must not rely on it being hard.

Linkage: the hash is the identifier

Even if nobody ever recovers the original email, a deterministic hash is a persistent, unique value attached to one person. Any two parties who apply the same normalisation and the same function to the same email produce the same hash, and can join their datasets on it. That is why FTC staff describe a hash as able to act as a persistent, unique signature that tracks a person or device over time. GDPR's definition of personal data covers information relating to a person who can be identified "directly or indirectly", including by reference to an identifier or online identifier (Article 4(1)); a stable join key fits that description whether or not the name behind it is known.

Regulatory views (EDPB, ICO, FTC)

BodyDocument and statusPosition relevant to hashed identifiers
EDPB (EU)Guidelines 01/2025 on Pseudonymisation, adopted 16 January 2025 as a version for public consultation (consultation closed 14 March 2025)Pseudonymised data that can be attributed using additional information is information on an identifiable person (para 22). Transformations should use secret information of sufficient entropy (para 88); keyed one-way functions such as HMACs are suitable building blocks (paras 89 and 107). Plan to replace algorithms that become weak (para 91).
ICO (UK)Pseudonymisation guidance, under review following the Data (Use and Access) Act 2025Pseudonymised data is personal data for whoever holds the additional information. Avoid hashing that uses no salt, pepper or encryption key. Avoid MD5 and SHA-1. Shared salts used for linking create brute-force risk and must be protected. Peppers are kept separately and not shared.
FTC staff (US)Office of Technology blog "No, hashing still doesn't make your data anonymous", July 2024Hashing does not make data anonymous; data is only anonymous when it can never be associated back to a person. All user identifiers can identify and track people over time, and the opacity of an identifier is no excuse for improper use or disclosure.

The FTC post grounds its position in earlier enforcement. It cites the 2015 Nomi case, where the complaint said hashing a MAC address still left a persistent unique identifier; the BetterHelp matter, where the FTC alleged hashed emails were shared with Facebook knowing they would be matched back to people; Premom, which allegedly shared advertising and device identifiers while calling them non-identifiable; and InMarket in January 2024, over tracking tied to a mobile device identifier. The common thread for US teams is deception: describing hashed or pseudonymous data as anonymous in a privacy promise invites enforcement.

The EDPB text was published as a version for public consultation, and the ICO guidance carries an under-review notice, so check both pages for updates before relying on paragraph numbers. The direction of travel in both has been consistent: hashing is a pseudonymisation technique at best, never anonymisation by itself.

Hashing vs pseudonymisation vs anonymisation

The three terms are often used interchangeably in product documentation. They mean different things in law and in engineering.

ApproachWhat it doesCan the holder link records?Can someone with a candidate list re-identify?Legal status (GDPR / UK GDPR)
Unkeyed hash (e.g. SHA-256 of a normalised email)Deterministic transformation with no secretYes, and so can anyone else using the same functionYes, by hashing candidatesPersonal data
Hash with per-record random saltDifferent output each time, salt stored with recordNo, unless salts are kept per personYes for a targeted person if the salt is stored beside the hash, at higher costPersonal data
Hash with shared saltDeterministic within the group sharing the saltYes, within the groupYes, for anyone who obtains the saltPersonal data; the salt is effectively a key
Keyed hash (HMAC with protected secret)Deterministic only for holders of the keyYes, for key holdersNot without the keyPseudonymised personal data for key holders; possibly anonymous for recipients with no means of attribution, depending on context
Random token with lookup table (tokenisation)Replaces value with random token, mapping held separatelyYes, via the vaultNot without the vaultPseudonymised personal data
Aggregation or anonymisation with tested riskRemoves individual-level records or keeps re-identification risk remoteNoRisk assessed as remoteCan fall outside data protection law if the anonymity test is met

The full technique comparison, including counters, encryption and pseudonymisation domains, is in the Pseudonymisation Techniques Guide. The distinctions between masking, pseudonymisation and anonymisation are covered in Data Masking vs Anonymisation vs Pseudonymisation.

The limits of salting

  • Per-record salts break the use case: if every record gets a fresh random salt, two datasets can no longer be joined, which is usually why the hash was introduced. Teams then quietly switch to a fixed salt.
  • A fixed salt is a shared secret: the ICO notes that consistent hashes across databases require sharing the salt, and that this creates brute-force risk. Once the salt is in a partner's environment, an attacker or insider there can hash candidates with it.
  • Salt stored beside the hash: a salt kept in the same table protects against precomputed tables but not against a targeted search for one person, because the attacker simply includes the salt in each candidate.
  • Peppers and keys must be managed as secrets: a value kept separately from the data, rotated and access-controlled, behaves like a cryptographic key. At that point use a proper keyed construction (HMAC) and a secrets manager rather than an improvised salt.
  • Slow hashes help less than expected: the EDPB cites password-hashing functions such as Argon2 and the ICO cites bcrypt where an unkeyed function must be used. A work factor raises the cost per guess, but with a candidate set of millions rather than trillions the search can remain feasible.

Safer alternatives

The right answer depends on what the hash was meant to achieve. Start with the purpose, then pick the weakest form of data that still serves it.

PurposeSafer approachNotes
Joining internal datasetsHMAC-SHA-256 with a key held in a secrets manager or HSM, scoped to one pseudonymisation domainRotate or re-key by applying a second keyed function, as the EDPB suggests for weak algorithms
Measuring campaign reach with a partnerData clean room or aggregate reporting with minimum thresholdsNeither party receives the other's row-level identifiers. See the Data Clean Rooms Guide
Audience upload to an ad platformTreat as a disclosure of personal data: lawful basis, notice, processing terms, minimum fieldsHashing protects the file in transit, not the person. Do not call the upload anonymous
Analytics and model trainingAggregation, differential privacy or synthetic data with tested riskSee the Differential Privacy Guide
Deduplication or fraud signals across companiesKeyed or private set intersection techniques under a data sharing agreementAgree the domain, retention and key custody in the contract

How to implement

  1. Inventory hashed identifiers. Search schemas, data pipelines and tag managers for columns and payloads containing hashes of email, phone, device or customer IDs. Record source, function, salt or key handling and every recipient. This is CSF 2.0 ID.AM-07 work.
  2. Classify them as personal data. Update the data map, records of processing and retention rules so hashed fields carry the same classification as the raw value.
  3. Check every external claim. Review privacy notices, consent text, DPAs and sales material for "anonymous", "anonymised" or "non-identifiable" applied to hashed data, and correct them.
  4. Re-design internal joins. Replace unkeyed hashes with HMAC using a managed key; test in parallel by computing both values for a period, then cut over and delete the old column.
  5. Re-assess partner flows. For each disclosure, run or update a DPIA, confirm lawful basis and contract terms, and move to clean rooms or aggregates where row-level sharing is not needed.
  6. Roll back safely. Keep the previous pipeline version deployable until match rates and downstream reports are validated; if a partner integration breaks, pause the flow rather than reverting to unkeyed hashes.

Where identity fits

A keyed hash is only as private as its key. The HMAC secret, the clean-room credentials and the API keys used to push audiences to ad platforms are machine credentials, usually held by pipelines and service accounts rather than people. Store them in a secrets manager, scope each to one pipeline, rotate them, and log their use. A leaked pseudonymisation key turns every keyed hash back into a linkable identifier. See the guide to securing the tokenisation and data masking platform itself.

Detection, measurement and framework mapping

  • Coverage: percentage of identified hashed-identifier fields classified as personal data in the data map.
  • Unkeyed hashes remaining: count of pipelines or tables still using unkeyed or fixed-salt hashes of identifiers; the target is zero for internal joins.
  • External disclosures with assessment: share of partner and ad-platform flows with a current DPIA and contract terms.
  • Claim accuracy: number of notices or contracts describing hashed data as anonymous; target zero.
  • Key hygiene: age of pseudonymisation keys and number of identities with access to them.
FrameworkReferenceRelevance
GDPR / UK GDPRArt. 4(1), Art. 4(5), Recital 26, Art. 25, Art. 32Definition of personal data and pseudonymisation; data protection by design; security of processing
NIST SP 800-53 Rev 5SI-19 De-identification; SI-19(4) Removal, Masking, Encryption, Hashing, or Replacement of Direct IdentifiersHashing listed as one de-identification technique, to be applied alongside a re-identification risk assessment
NIST SP 800-53 Rev 5PT-2, PT-3Authority and purpose for processing PII, which still applies to hashed identifiers
NIST CSF 2.0ID.AM-07, PR.DS-01, PR.DS-02Data inventories; protection of data at rest and in transit
ISO/IEC 27001:2022 Annex AA.5.34 Privacy and protection of PII; A.8.11 Data maskingPII obligations and masking, pseudonymisation or anonymisation techniques

Common failure patterns

  • "Anonymised" in the privacy notice: the notice says hashed emails shared with partners are anonymous. This is the pattern behind the FTC actions cited above and the easiest one to fix.
  • MD5 or plain SHA-256 of a raw email as a "user ID": the identifier spreads into logs, analytics tools and third-party SDKs, where anyone with a list of addresses can match it.
  • Hashed phone numbers treated as low risk: the numbering space is small enough to enumerate entirely, so these offer even less protection than hashed emails.
  • Fixed salt hard-coded in source: the salt is committed to a repository or embedded in a mobile app, which makes it public and the hashes as weak as unsalted ones. See the Encryption vs Hashing vs Masking comparison for choosing the right primitive.
  • Retention ignored: hashed fields are excluded from deletion and subject access processes because they are assumed not to be personal data, so erasure requests leave a linkable trail behind.
  • Keyed hash with an unmanaged key: HMAC is introduced but the key sits in a configuration file readable by every engineer and copied to partners.

Practitioner checklist

  • Find every hashed email, phone, device and customer ID in pipelines, warehouses, tags and SDK payloads.
  • Classify hashed identifiers as personal data in the data map and records of processing.
  • Remove "anonymous" and "non-identifiable" wording about hashed data from notices, contracts and marketing.
  • Replace unkeyed hashes used for internal joins with HMAC and a key held in a secrets manager.
  • Stop using MD5 and SHA-1 for identifiers; plan re-keying for any algorithm that weakens.
  • Include hashed fields in deletion, retention and subject access processes.
  • Run a DPIA for each partner or ad-platform disclosure and prefer clean rooms or aggregates.
  • Restrict and log access to pseudonymisation keys and salts, and rotate them on a schedule.

Standards and references

Related NHI Mgmt Group resources: Anonymisation and Re-identification Risk Guide · Pseudonymisation Techniques Guide · Hashing Guide · Data Clean Rooms Guide · Data Minimisation

PDF for subscribers

Take this guide with you

Every section, table and checklist in one PDF, with links to the sources and related guides. Subscribe to our weekly NHI & AI Identity Journal and we’ll email you a download link.

Free weekly newsletter

Subscribe to the NHI & AI Identity Journal

The latest on NHI and Agentic AI security – articles, research, breaches, news and events every week.

Bonus 33% off our NHI Course when you subscribe.

PDF Downloads for Newsletter Subscribers

Get the guide

Enter your details and we’ll email you a download link.

The full guide is free to read online. The PDF is a thank you for subscribing.

Fill in all fields marked * and tick both boxes to continue.