Verifies a password against an encoded Argon2id hash.
The password is NFKC-normalized before verification — the same
canonicalization deriveKeyArgon2id applies, so hashes and
verification always agree on Unicode forms.
Parameters
password: string
The candidate password (NFKC-folded internally).
encodedHash: string
The encoded Argon2id hash (PHC string format).
Optionalsecret: string
Optional additional secret data passed through to
Argon2id (not normalized).
Verifies a password against an encoded Argon2id hash.
The
passwordis NFKC-normalized before verification — the same canonicalization deriveKeyArgon2id applies, so hashes and verification always agree on Unicode forms.