Adaptive Cost: Future-Proof by Design
Bcrypt's key innovation is the cost factor: a parameter that controls the number of iterations as 2n. At cost 10, bcrypt runs 1,024 iterations; at cost 12, 4,096. As hardware gets faster, you increase the cost. In 1999 (bcrypt's creation), cost 6 was adequate. Today, OWASP recommends cost 12(4,096 iterations), targeting ~250ms per hash on modern hardware. An attacker with an RTX 4090 GPU can attempt only ~3,000 bcrypt hashes per second at cost 12 — compared to 164 billion MD5 hashes per second.