# GenerateSCryptHash()

Generates an SCrypt password hash. ACF-compatible name. Also available as SCryptHash() for consistent naming.

**Status:** deprecated

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

```
GenerateSCryptHash( input=string, costParameter=numeric, blockSize=numeric, parallelization=numeric );
```

**Returns:** string

# Arguments

| Argument | Type | Required | Description | Default |
|----------|------|----------|-------------|---------|
| input | string | Yes | Password to hash |  |
| costParameter | numeric | No | CPU/memory cost (N) - must be power of 2 | 16384 |
| blockSize | numeric | No | Block size (r) | 8 |
| parallelization | numeric | No | Parallelization factor (p) | 1 |

# Usage Notes

ACF-compatible function name.

Also available as [SCryptHash()](scrypthash.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

[SCryptHash()](scrypthash.md), [SCryptVerify()](scryptverify.md), [VerifySCryptHash()](verifyscrypthash.md)