Argon2CheckHash()

Returns hash of input using Argon2.

Introduced: 5.3.8.43

Argon2CheckHash( input=string, hash=string );

Returns: Boolean

Argument Description
input
string, required

Input string.

hash
string, required

Argon2 hash to compare against input string

Examples

secret = createUUID();
    dump(var=secret, label="input string");
    hashed = generateArgon2Hash(secret);
    dump(var=hashed, label="generateArgon2Hash");
    decoded= argon2checkhash(secret, hashed);
    dump(var=decoded, label="argon2checkhash matches");

See also