hashValue
function hashValue(paths, options?): AuditTransform;Defined in: src/transforms.ts:115
Replace values with a SHA-256 digest (sha256:…). Pass a salt (a secret)
to keep low-entropy values (emails, IPs) from being confirmed by brute force;
equal inputs still produce equal digests, so you can correlate without storing.
Parameters
Section titled “Parameters”| Parameter | Type |
|---|---|
paths |
string | string[] |
options? |
{ salt?: string; } |
options.salt? |
string |