DevToolsForYou

Hash Algorithms Cheatsheet

A quick reference for common cryptographic and non-cryptographic hash algorithms — output sizes, security status, and when to use each.

Updated Apr 11, 2026
Try the Hash Generator

Sections

  1. Cryptographic Hash Functions
  2. Password Hashing Functions
  3. Non-Cryptographic Hash Functions
  4. When to Use Which Algorithm

Cryptographic Hash Functions

AlgorithmOutput SizeStatusCommon Use
MD5128 bits (32 hex)Broken
SHA-1160 bits (40 hex)Broken
SHA-224224 bits (56 hex)Secure
SHA-256256 bits (64 hex)Secure
SHA-384384 bits (96 hex)Secure
SHA-512512 bits (128 hex)Secure
SHA3-256256 bits (64 hex)Secure
BLAKE3256 bits defaultSecure

Password Hashing Functions

AlgorithmTypeRecommended?Notes
bcryptAdaptive KDFYes
Argon2idMemory-hard KDFYes (preferred)
scryptMemory-hard KDFYes
PBKDF2Iterated KDFAcceptable
SHA-256 (plain)HashNo
MD5 (plain)HashNo

Non-Cryptographic Hash Functions

AlgorithmSpeedUse Case
CRC32Very fastError detection in network packets, ZIP files. Not collision-resistant.
MurmurHash3Very fastHash tables, bloom filters. Not suitable for security.
FNV-1aFastHash maps, checksums. Simple to implement.
xxHashExtremely fastFile deduplication, data pipelines. Very high throughput.

When to Use Which Algorithm

ScenarioRecommended Algorithm
Storing user passwordsArgon2id (preferred) or bcrypt (cost ≥ 12)
Signing JWTsHS256 (shared secret) or RS256/ES256 (asymmetric)
File integrity checkSHA-256 or SHA-512
TLS certificate hashingSHA-256 (SHA-1 is deprecated)
API request signing (HMAC)HMAC-SHA256
Hash table / cache keyxxHash, MurmurHash3 (non-cryptographic)
Non-security checksumMD5 or CRC32 (fast, collision-resistant enough)
Deduplication pipelineBLAKE3 or xxHash for speed
Related guidesAll guides →