Attack Probability Calculator
Comprehensive cryptographic attack analysis. Brute force, birthday attacks, side-channel risks, password strength, and key derivation security.
Step 1 of 2
How to Use This Calculator
- Choose an Attack Type: Brute Force Analysis, Birthday/Collision Attack, Side-Channel Risk, Password Attack, or Key Derivation Security.
- For Brute Force Analysis, enter the key space in bits, attacker hash rate, parallel devices, and target success probability.
- For Birthday/Collision Attack, enter the hash output size in bits, desired collision probability, and items generated.
- For Side-Channel Risk, select the implementation type, attacker access level, and measurement precision to see timing, power, cache, and EM radiation risk.
- For Password Attack, enter password length, character set size, known patterns, and bcrypt hashing cost.
- For Key Derivation Security, select the KDF algorithm and enter iterations/cost, memory, and parallelism to check OWASP compliance.
- Review the calculated outputs -- such as time to crack, feasibility, collision probability, overall risk, strength rating, or OWASP compliance -- depending on the selected mode.
What each input means
- Attack Type
- Calculation mode to use.
- Key Space (bits)
- AES-128 = 128 bits
- Attack Rate (hashes/sec)
- 1e12 = 1 trillion/sec
- Hash Output (bits)
- MD5=128, SHA-256=256
- Items Generated
- How many hashes created
- Password Length
- Desired password length.
- Character Set Size
- 95 = printable ASCII
- Hashing Cost (bcrypt)
- bcrypt cost factor (10-14)
- Iterations/Cost
- PBKDF2: 100000+, bcrypt: 12, Argon2: 3
- Memory (MB)
- For scrypt/Argon2
- Parallelism
- For Argon2
How this is calculated
Formula
Time = KeySpace / AttackRate | Birthday = √(π/2 × N)Worked example, using the default values
- Identify Input Parameters4 parametersAttack Type = 0, Key Space (bits) = 128, Attack Rate (hashes/sec) = 1000000000000, Parallel Devices = 1 = 19 input(s) provided
- Calculate Time to CrackTime to Crack5391448762278159000 = 5391448762278159000
- Calculate FeasibilityFeasibilityBeyond current technology = Beyond current technology
- Calculate Total Key SpaceTotal Key Space3.402823669209385e+38 = 3.402823669209385e+38
- Calculate Energy CostEnergy Cost4.726143985013035e+21 = $4,726,143,985,013,035,000,000
Engine last updated . Checked against 6 independently-derived tests — how we verify calculators.
Related Calculators
The questions that sit next to this one — chosen by subject, including calculators filed under a different category.
Security Tools Calculator
Password strength analysis, crack time estimation, and hash algorithm comparison.
Cryptography & SecurityEncryption Strength Calculator
Complete encryption strength analysis. Key strength, hash functions, cipher modes, post-quantum cryptography, and random number generation.
Cryptography & SecurityBirthday Attack Calculator
Calculate birthday attack parameters, collision probability, time to collision, and attack feasibility for hash functions.
Cryptography & SecuritySecurity Strength Calculator
Calculate overall cryptographic security strength, equivalent key lengths, and security lifetime estimates.
Security ToolsEncryption Strength Calculator
Estimate brute-force time from key length and attacker computing power. Covers symmetric (AES) and asymmetric (RSA) algorithms with quantum threat modeling.
More in Technology & Computing.