# VerifyArgon2Hash()

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

**Status:** deprecated

**Requires Extension:** [Crypto Extension](https://download.lucee.org/#17AB52DE-B300-A94B-E058FC978BE4542D)

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

**Returns:** boolean

# Arguments

| Argument | Type | Required | Description | Default |
|----------|------|----------|-------------|---------|
| input | string | Yes | Password to verify |  |
| hash | string | Yes | Argon2 hash to check against |  |
| throwOnError | boolean | No | If true, throws an exception on invalid hash format instead of returning false | false |

# Usage Notes

This is an alias for [Argon2CheckHash()](argon2checkhash.md) provided by the crypto extension. For new code, prefer [Argon2Verify()](argon2verify.md) for consistent naming with [BCryptVerify()](bcryptverify.md) and [SCryptVerify()](scryptverify.md).

# Examples

*There are currently no examples for this function*







# Categories

[Cryptography](../../categories/crypto.md)

# See Also

[Argon2CheckHash()](argon2checkhash.md), [Argon2Hash()](argon2hash.md), [Argon2Verify()](argon2verify.md)