Frequently Asked Questions
How does the bcrypt cost factor affect work?
The cost (work factor) sets the number of key-expansion rounds to 2^cost. Going from cost 10 to 12 quadruples the work, since 2¹² ÷ 2¹⁰ = 4.
How long does one hash take at a given cost?
Time per hash ≈ 2^cost ÷ (hashes per second your hardware achieves at cost 0-equivalent), but in practice you benchmark it: a typical server lands near 100 ms per hash around cost 12.
What cost factor should I use?
Pick the highest cost that keeps a single hash near 100–250 ms on your production hardware, commonly cost 10–13 in 2026. Re-benchmark periodically because faster CPUs let attackers and you both go higher.
How many hashes can an attacker try?
Attacker throughput = their hardware hashes/sec ÷ 2^cost relative to your baseline. Each +1 to cost halves their guessing rate, which is why raising the cost directly slows brute-force attacks.
Provided by AllCalculators.io
Free online calculators for everyday. No registration required.
Estimates for informational purposes only.
Important Disclaimer: Estimates for informational purposes only.
This calculator provides estimates for informational purposes only. Results are based on assumptions and may not reflect actual outcomes. Consult qualified professionals in relevant fields before making important decisions based on these results.