Hash Generator
Generate MD5 and SHA family hashes in one click. Generate and verify bcrypt password hashes with adjustable cost factor. Compare any two hashes for equality.
Cryptographic Hashes vs Bcrypt — Know the Difference
MD5, SHA-1, SHA-256, SHA-384, and SHA-512 are general-purpose hash functions designed to be fast. Speed is a problem for passwords — an attacker with a GPU can test billions of MD5 or SHA-256 guesses per second. Never use these to store passwords.
Bcrypt is designed specifically for passwords and is intentionally slow. The cost factor (rounds) controls how slow — each increment doubles the work. At 12 rounds, hashing takes roughly 250ms, which is imperceptible to a real user but makes brute-force attacks take thousands of years. PostgreSQL, Django, Laravel, Node.js bcrypt libraries, and most modern authentication systems use bcrypt or its successors (Argon2, scrypt).
The Five Hash Algorithms
- MD5 — 128-bit. Fast, widely used for checksums and file integrity. Cryptographically broken — do not use for security purposes.
- SHA-1 — 160-bit. Also broken for collision resistance since 2017. Still used in Git for content addressing. Not for passwords or signatures.
- SHA-256 — 256-bit. Current standard. Used in TLS certificates, Bitcoin, JWT signatures, and file checksums. Safe for general use.
- SHA-384 — 384-bit. Truncated version of SHA-512 computed on 64-bit words. Slightly faster than SHA-512 on 64-bit systems.
- SHA-512 — 512-bit. Highest security in the SHA-2 family. Used where maximum hash length is needed.
Bcrypt Rounds Guide
Rounds 10–12 cover most production use cases. 10 rounds is about 100ms per hash; 12 rounds is about 250ms; 14 rounds exceeds 1 second. Always benchmark on your actual server hardware and choose the highest value that keeps login response under 500ms for your user load.