# GenerateBCryptHash()

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

**Status:** deprecated

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

```
GenerateBCryptHash( input=string, cost=numeric );
```

**Returns:** string

# Arguments

| Argument | Type | Required | Description | Default |
|----------|------|----------|-------------|---------|
| input | string | Yes | Password to hash |  |
| cost | numeric | No | Cost factor (4-31) | 10 |

# Usage Notes

ACF-compatible function name.

Also available as [BCryptHash()](bcrypthash.md) for consistent naming with the {Algorithm}Hash/{Algorithm}Verify pattern. Both functions are identical.

# Examples

*There are currently no examples for this function*







# Categories

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

# See Also

[BCryptHash()](bcrypthash.md), [BCryptVerify()](bcryptverify.md), [VerifyBCryptHash()](verifybcrypthash.md)