EarnMorev1.0.0

customerFingerprint

customerFingerprint(info: CustomerInfo): string

Source: hash.ts:117

Produces a deterministic SHA-256 hex fingerprint from all customer fields. Fields are normalized (trimmed, lowercased, date as ISO YYYY-MM-DD) so that minor formatting differences do not produce different fingerprints.

This fingerprint is used as an entropy input mixed with a random salt — it is never the sole source of PAN uniqueness.

Input validation (NIST SP 800-218):

  • birthPlace: letters and spaces only
  • Individual fields: max 512 characters each
  • Total payload: max 5 KB

Parameters

Returns

  • string