Policy review
A team compares bcrypt cost 12 with the baseline of 10.
Inputs
- Cost factor: 12
Steps
- Relative work = 2^(12 - 10) = 4
Result
- Cost 12 requires roughly 4 times the work of cost 10.
Estimate the relative work factor increase created by changing bcrypt cost rounds.
Result
Calculating the sample result.
Bcrypt rounds are exponential, so small setting changes can create surprisingly large performance differences.
Inputs
Outputs
Bcrypt cost scales exponentially. Each increment doubles the work, so relative work can be expressed as 2 raised to the difference between the chosen cost and a baseline.
Relative work vs cost 10 = 2^(cost - 10)
Policy review
A team compares bcrypt cost 12 with the baseline of 10.
Inputs
Steps
Result
Because bcrypt performance varies across languages, hardware, and deployment environments.
Yes. Each additional round doubles the work required.
Keep going
Estimate password entropy from length and character set assumptions.
Estimate the entropy of an API key format from its length and character set size.
Convert session lifetime settings into multiple time units and calculate expiry from a duration.