bcrypt & Argon2i Password Hashing Work Factor Calculator

Calculate Your Optimal Hashing Work Factor

The maximum acceptable time for a single password hash on your system.
The time it took to hash a single password using your benchmark cost factor.
The bcrypt cost factor (log₂ iterations) used for your benchmark observation. Typically between 10-14 for modern systems.

Unlock optimal security for your applications with our bcrypt and Argon2i Work Factor Calculator. Easily determine the ideal cost factor to ensure robust password hashing, balancing computational load with protection against brute-force attacks. Get accurate recommendations for secure user authentication.

Formula:

The bcrypt cost factor (or 'work factor') determines the computational difficulty of hashing a password. Each increment in the cost factor roughly doubles the time required to compute a hash. Our calculator uses the following principle:

New Cost Factor ≈ Benchmark Cost Factor + log₂ (Desired Time / Benchmark Time)

  • Desired Time: Your target time for a single hash (in milliseconds).
  • Benchmark Time: Observed time for a single hash using a known cost (in milliseconds).
  • Benchmark Cost Factor: The bcrypt cost factor (log₂ iterations) used during your benchmark.

Computing and Security Tools

3D Rendering Time Estimator

Go to Calculator

AI Token Cost : Estimate & Optimize Your LLM API Spend

Go to Calculator

API Call Cost : Accurately Estimate Your Cloud Expenses

Go to Calculator

API Integration Cost

Go to Calculator

API Rate Limit & Token Bucket Capacity

Go to Calculator

App Development Cost

Go to Calculator