iya-sts
    Preparing search index...

    Variable hashPassword

    hashPassword: (plaintext: any, spec: any) => string = hashPassword

    Type Declaration

      • (plaintext: any, spec: any): string
      • Hashes a PERSON'S PASSWORD under a password-policy spec, on this thread: argon2id in the PHC form, or scrypt in $scrypt$N$r$p$salt$hash.

        Every other secret goes through hashSecret(), which stays scrypt.

        Parameters

        • plaintext: any

          the password

        • spec: any

          the policy's hash spec; see passwordHashSpec()

        Returns string

        the stored form