web / lib/utils/hash
lib/utils/hash
Shared cryptographic hash utilities for PII protection.
Functions
hashEmail()
hashEmail(
string
Hash an email address (lowercased and trimmed) using SHA-256.
Parameters
string
Returns
string
hashIpAddress()
hashIpAddress(
ip):string
Hash an IP address using SHA-256.
Parameters
ip
string
Returns
string
Last updated on