Hash a plaintext password, validating the password policy and selecting a random salt.
Plaintext password; never trimmed, truncated, or logged.
A self-describing encoded hash suitable for storage.
PasswordPolicyError When the password violates validatePassword.
Compare a plaintext password against a stored encoded hash.
Stored encoded hash produced by PasswordHasher.hash.
Candidate plaintext password.
true only when the password matches the hash; never throws for a mismatch.
Argon2id credential hashing boundary. The library owns random salts and verification.