GenerateBCryptHash()
Generates a BCrypt password hash. ACF-compatible name. Also available as BCryptHash() for consistent naming.
Status:
Requires Extension: Crypto Extension
GenerateBCryptHash( input=string, cost=numeric );
Returns: String
| Argument | Description | Default |
|---|---|---|
|
input
string,
required
|
edit
Password to hash |
|
|
cost
numeric,
optional
|
edit
Cost factor (4-31) |
10 |
Usage Notes
editACF-compatible function name.
Also available as BCryptHash() for consistent naming with the {Algorithm}Hash/{Algorithm}Verify pattern. Both functions are identical.
Examples
There are currently no examples for this function 31,745ms WARN No examples for function GenerateBCryptHashSee also
- Cryptography
- BCryptHash()
- BCryptVerify()
- VerifyBCryptHash()
- Search Issue Tracker open_in_new
- Search Lucee Test Cases open_in_new (good for further, detailed examples)