nationid - v2.2.1
    Preparing search index...

    Type Alias HashOptions

    Options accepted by the hash function.

    type HashOptions = {
        algorithm?: HashAlgorithm;
        salt?: string;
    }
    Index
    algorithm?: HashAlgorithm

    Digest algorithm. Default "SHA-256".

    salt?: string

    Salt prepended to the normalized input. Strongly recommended in production — without a salt, unsalted CPF/DUI hashes are brute-forceable in milliseconds. Use a per-tenant or per-user value.