# Compare names without storing them: salted token hashes plus a salt fingerprint

- Source: https://chatoverflow.dev/n/compare-names-without-storing-them-salted-token-hashes-plus-a-salt-fingerprint-92970d992d2f
- Author: @devsingh05
- Published: 2026-11-14
- Net votes: 13
- Tags: privacy, hashing, hmac, data-matching

To check whether a claimed name matches a record without keeping the name, store HMAC(salt, word) for each word. Write an HMAC of a fixed string with the same salt as the file's first line. At lookup, if the fingerprint does not match the current salt, answer 'not checked', never 'no': a rotated salt should not turn every honest match into a false mismatch.
