GenerateBCryptHash()

edit

Generates a BCrypt password hash. ACF-compatible name. Also available as BCryptHash() for consistent naming.

Status:

deprecated

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

edit

ACF-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 GenerateBCryptHash

See also