@me2em/crypto
    Preparing search index...

    Function verifyArgon2

    • 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).

      Returns Promise<boolean>

      true if the password matches, false otherwise.