#️⃣

MD5

MD5 (Message Digest Algorithm 5) is a cryptographic hash function that produces a 128-bit value (32 hexadecimal characters) from any input. While widely used for file integrity verification and password storage, it is now considered cryptographically broken for security purposes.

Examples

  • echo -n 'hello' | md5sum → 5d41402abc4b2a76b9719d911017c592
  • 1GB file → 32-character hex MD5 hash
  • password123 → 482c811da5d5b4bc6d497ffa98491e38 (insecure for production)

FAQ

Is MD5 secure for passwords?

No. MD5 is vulnerable to collision attacks and rainbow tables. For passwords always use bcrypt, scrypt, or Argon2 with built-in salt.

Why do some sites still use MD5 for checksums?

Because for integrity verification without adversaries (accidental corruption), MD5 is still fast and sufficient. The problem is when an attacker can manipulate the file.

Can I reverse an MD5 hash?

No. Hashes are one-way functions. But with pre-calculated databases (rainbow tables) you can find common inputs that produce a given hash.