Examples
echo -n 'hello' | md5sum → 5d41402abc4b2a76b9719d911017c5921GB file → 32-character hex MD5 hashpassword123 → 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.