Hash a password with the maintained Argon2id parameters.
Plaintext password; validated by validatePassword first.
The encoded Argon2id hash produced by the argon2 library.
PasswordPolicyError When the password length is outside the policy bounds.
Verify a password against an encoded Argon2id hash.
Encoded hash previously produced by this hasher.
Candidate plaintext password.
true when the candidate matches; false for a mismatch without revealing which
part of the credential was wrong.
Maintained Argon2id implementation using OWASP's 19 MiB/2 iteration baseline.