Function: hashSensitiveValue()
hashSensitiveValue(
value):string
Stands in for a secret (a password, token or key) in logs and error messages: a fingerprint that is the same for the same value within this process, so log lines can be compared, but that cannot be checked against guesses offline, since it is keyed with a random secret of this process. Derived with scrypt at a low cost: it runs whenever a secret is logged. Never throws: it returns REDACTED_VALUE when the fingerprint cannot be computed.
Parameters
value
string
Returns
string