VerifyBCryptHash()
Verifies a password against a BCrypt hash. ACF-compatible name. Also available as BCryptVerify() for consistent naming.
Status:
Requires Extension: Crypto Extension
VerifyBCryptHash( input=string, hash=string, throwOnError=boolean );
Returns: Boolean
| Argument | Description | Default |
|---|---|---|
|
input
string,
required
|
edit
Password to verify |
|
|
hash
string,
required
|
edit
BCrypt hash to check against |
|
|
throwOnError
boolean,
optional
|
edit
If true, throws an exception on invalid hash format instead of returning false |
false |
Usage Notes
editACF-compatible function name.
Also available as BCryptVerify() for consistent naming with the {Algorithm}Hash/{Algorithm}Verify pattern. Both functions are identical.
Examples
There are currently no examples for this function 35,850ms WARN No examples for function VerifyBCryptHashSee also
- Cryptography
- BCryptHash()
- BCryptVerify()
- GenerateBCryptHash()
- Search Issue Tracker open_in_new
- Search Lucee Test Cases open_in_new (good for further, detailed examples)