VerifyArgon2Hash()

edit

Verifies a password against an Argon2 hash. Alias for Argon2CheckHash(). For new code, prefer Argon2Verify() for consistent naming.

Status:

deprecated

Requires Extension: Crypto Extension

VerifyArgon2Hash( input=string, hash=string, throwOnError=boolean );

Returns: Boolean

Argument Description Default
input
string, required
edit

Password to verify

hash
string, required
edit

Argon2 hash to check against

throwOnError
boolean, optional
edit

If true, throws an exception on invalid hash format instead of returning false

false

Usage Notes

edit

This is an alias for Argon2CheckHash() provided by the crypto extension. For new code, prefer Argon2Verify() for consistent naming with BCryptVerify() and SCryptVerify().

Examples

There are currently no examples for this function 35,796ms WARN No examples for function VerifyArgon2Hash

See also