Hash Properties Calculator
Compare cryptographic hash function properties. See output size, collision resistance, brute force time, and security status for MD5, SHA-1, SHA-256, SHA-512, and bcrypt.
A cryptographic hash function takes an input of any length and produces a fixed-size output ("digest") that's supposed to be practically impossible to reverse or to duplicate for a different input. This calculator compares five widely-referenced algorithms by their OUTPUT SIZE in bits: MD5 (128-bit) and SHA-1 (160-bit) are both cryptographically broken -- MD5 has practical collision attacks and SHA-1 had a demonstrated collision published in 2017 -- and neither should be used for anything security-sensitive today. SHA-256 (256-bit) and SHA-512 (512-bit), from the SHA-2 family, remain the standard recommendation for general hashing needs like file integrity checks and digital signatures. bcrypt is a different category entirely: it's purpose-built for PASSWORD hashing, deliberately slow (via a tunable work factor) so that brute-forcing a stolen password database is expensive even at scale, which is exactly the opposite design goal from SHA-256's emphasis on speed. Output size alone determines the calculator's estimated brute-force time and collision resistance -- a larger digest means exponentially more possible outputs to search through or collide.
Inputs
Results
Output Size
256 bits
How to Use This Calculator
- Select the Hash Algorithm from the dropdown (SHA-256 or SHA-512 for general use, bcrypt for passwords).
- Review the Output Size in bits and Hex Characters to understand the hash length you will store.
- Check the Collision Resistance field — larger values mean stronger resistance to hash collisions.
- Read the Brute Force Time estimate to understand how long an exhaustive attack would take at 10 billion hashes/sec.
- Use the Security Status to confirm whether the algorithm is Recommended, Deprecated, or Broken before deployment.
What each input means
- Input Length
- Length of the input string.
- Hash Algorithm
- Hash algorithm to use.
How this is calculated
Worked example, using the default values
- Identify Input ParametersInput Length = 10, Hash Algorithm = 2 = 2 input(s) provided
- Calculate Output SizeOutput Size = info.bits256 = 256
- Calculate Hex CharactersHex Characters64 = 64
- Calculate Collision ResistanceCollision Resistance = `2^${collisionBits2^128 operations = 2^128 operations
Engine last updated . Checked against 2 independently-derived tests — how we verify calculators.
Frequently Asked Questions
Does entering a longer input string make the resulting hash more secure?
No -- every algorithm here always produces the same fixed-length output regardless of input length: SHA-256 always outputs 256 bits whether you hash one character or ten thousand. Input Length in this calculator does not feed into any of the security metrics shown; hash strength depends entirely on which ALGORITHM you select, not on how long the text being hashed is.
Why are MD5 and SHA-1 marked as insecure even though they still produce a hash?
Both algorithms still technically run and produce output, but their core security property -- that finding two different inputs producing the same hash (a "collision") should be computationally infeasible -- has been broken in practice. MD5 collisions can be generated in seconds on ordinary hardware, and a real SHA-1 collision was demonstrated publicly in 2017, which is why both are marked "Do not use" or "Deprecated" in the results here.
How is bcrypt different from SHA-256 if both are listed as "Recommended"?
They're recommended for different jobs. SHA-256 is fast by design, which makes it good for file integrity checks and general-purpose hashing but a poor fit for passwords, since speed is exactly what helps an attacker brute-force a stolen password database. bcrypt is deliberately slow, with a tunable cost factor that can be increased over time as hardware improves, which is why it's the recommended choice specifically for password storage rather than general hashing.
Why does a bigger output size mean a longer brute-force time?
Because the number of possible hash values grows exponentially, not linearly, with output size -- an n-bit hash has 2^n possible outputs. Going from a 128-bit hash to a 256-bit hash doesn't double the search space, it multiplies it by 2^128, an astronomically larger number. To be clear, even MD5's own 128-bit preimage search space is already far beyond brute-force reach -- this calculator estimates roughly 10^21 years at 10 billion hashes/sec, itself vastly longer than the age of the universe, well before the estimate crosses into the "longer than the age of the universe" bucket reserved for the larger algorithms. So MD5's real-world weakness isn't that it can be brute-forced for preimages; it's that its COLLISION resistance is broken. Finding two different inputs that hash to the same MD5 value takes only around 2^18 to 2^64 operations depending on the attack -- practical in seconds to hours on ordinary hardware -- which is what the Collision Resistance figure and the earlier FAQ on MD5/SHA-1 are actually describing.
Related Calculators
The questions that sit next to this one — chosen by subject, including calculators filed under a different category.
Password Strength Calculator
Check how strong your password could be based on length and character types. See estimated time to crack.
Technology & ComputingBinary/Hex/Decimal Converter
Convert a decimal number into its binary, octal, and hexadecimal representations. Includes bit count, byte size, and ASCII character lookup.
Technology & ComputingSecurity Tools Calculator
Password strength analysis, crack time estimation, and hash algorithm comparison.
Cryptography & SecurityHash Collision Probability Calculator
Calculate hash collision probability using birthday paradox. Find collision probability and birthday bound for hash functions.
Cryptography & SecurityBirthday Attack Calculator
Calculate birthday attack parameters, collision probability, time to collision, and attack feasibility for hash functions.
More in Technology & Computing.