Argon2CheckHash()
Returns hash of input using Argon2.
Introduced: 5.3.8.43
Requires Extension: Argon2 Extension
Argon2CheckHash( input=string, hash=string );
Returns: Boolean
| Argument | Description |
|---|---|
|
input
string,
required
|
edit
Input string. |
|
hash
string,
required
|
edit
Argon2 hash to compare against input string |
Examples
edit 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
- Cryptography
- GenerateArgon2Hash()
- Search Issue Tracker open_in_new
- Search Lucee Test Cases open_in_new (good for further, detailed examples)