puiOptTimeCost - cPasswordHasher
Used to specify the time cost
Type: Property
Access: Read/Write
Data Type: UInteger
Parameters: None
Syntax
Property UInteger puiOptTimeCost
| Access Type | Syntax |
|---|---|
| Read Access: | Get puiOptTimeCost to UIntegerVariable |
| Write Access: | Set puiOptTimeCost to UIntegerVariable/Value |
Description
Depending on the algorithm, this property is used to specify the time cost.
A password hash should take at least between 0.5 and 1.5 seconds. This is to make sure hackers will be busy cracking.
This time cost's default is being updated by Data Access Worldwide to keep up with CPU speeds.
Currently applies to: - C_PWH_PBKDF2_HMAC_SHA_256 - C_PWH_PBKDF2_HMAC_SHA_512