Skip to main content
devtools.apz.me
devtools.apz.me

Free, open-source developer utilities for encoding, conversion, formatting, and more.

An Apps33 product

Product

  • All Tools
  • Blog

Company

  • About
  • Contact

Community

  • GitHub
  • Report Issue

© 2026 Apps33 · devtools.apz.me

Built on the MIT-licensed utils.live project.

All articles
CryptoMarch 29, 20266 min read

MD5 Hash Generator: Checksums and Hashing Explained

Learn what MD5 hashing is, how to generate MD5 checksums for file verification, and why MD5 should never be used for passwords.


What Is Cryptographic Hashing?

A cryptographic hash function takes an input of arbitrary length and produces a fixed-size output called a hash, digest, or checksum. Hash functions are the workhorses of computer security and data integrity verification.

Four key properties define a good hash function:

  1. Deterministic — The same input always produces the same output.
  2. Fast to compute — Hashing should be efficient in the forward direction.
  3. Pre-image resistant — Given a hash output, it should be computationally infeasible to find the original input.
  4. Collision resistant — It should be computationally infeasible to find two different inputs that produce the same hash output.
  5. Avalanche effect — A tiny change in the input (even one bit) produces a completely different hash output.

What Is MD5?

MD5 (Message Digest Algorithm 5) was designed by Ronald Rivest in 1991 as a replacement for MD4. It produces a 128-bit (16-byte) hash, typically displayed as a 32-character hexadecimal string.

Input:  "Hello, World!"
MD5:    65a8e27d8879283831b664bd8b7f0ad4

Change one character:

Input:  "Hello, world!"  (lowercase w)
MD5:    6cd3556deb0da54bca060b4c39479839

The hashes are completely different — this is the avalanche effect in action.

MD5 was the dominant hash function throughout the 1990s and 2000s and remains widely recognized today, even though its security properties have been broken.


MD5 Checksum Use Cases

File Integrity Verification

The most legitimate and common use of MD5 today is verifying that a downloaded file was not corrupted during transfer. Operating system ISO images, software packages, and archive files are often distributed alongside an MD5 checksum.

After downloading, you compute the MD5 of the file locally and compare it to the published checksum. If they match, the file arrived intact.

# On macOS
md5 ubuntu-24.04-desktop-amd64.iso

# On Linux
md5sum ubuntu-24.04-desktop-amd64.iso

Important: MD5 checksums protect against accidental corruption, not against a malicious attacker who has compromised the download server. For tamper-proof verification, use a cryptographic signature (GPG) instead.

Non-Security Fingerprinting and Deduplication

MD5 is fast and produces a short, fixed-size fingerprint of any data. This makes it useful for:

  • Detecting duplicate files — Two files with the same MD5 are almost certainly identical (ignoring intentional collisions, which require adversarial effort).
  • Cache keys — Hashing a request body or template to use as a cache key.
  • Database sharding — Distributing records across shards based on a hash of the key.
  • Content-addressable storage — Systems like Git (which uses SHA-1) address objects by their hash.

In these non-security contexts, MD5's broken collision resistance is usually acceptable because you are not defending against an attacker.

Legacy Systems

Older databases, APIs, and software systems may still use MD5 for checksums, session IDs, or ETags. You will encounter MD5 when maintaining or integrating with these systems even if you would choose something else for a greenfield project.


Why You Must Never Use MD5 for Passwords

This is the most important section of this article. MD5 is completely unsuitable for password storage. Here is why:

Collision Attacks

In 2004, researchers demonstrated practical MD5 collision attacks — the ability to craft two different inputs that produce the same MD5 hash. This breaks the collision-resistance property entirely.

MD5 Is Designed to Be Fast — That's a Problem for Passwords

A modern GPU can compute billions of MD5 hashes per second. If an attacker steals your database and sees MD5-hashed passwords, they can run a brute-force dictionary attack at enormous speed. Common passwords fall in milliseconds.

Rainbow Tables

Pre-computed tables of MD5 hashes for billions of common strings (rainbow tables) are freely available online. A simple SELECT * FROM rainbow_table WHERE hash = '5f4dcc3b5aa765d61d8327deb882cf99' reveals that the password was "password" — instantly, no computation required.

Salted MD5 Is Still Weak

Adding a salt (random string appended to the password before hashing) defeats rainbow tables but does not solve the speed problem. An attacker with a GPU farm can still brute-force salted MD5 hashes at scale.


What to Use Instead of MD5 for Passwords

Use a password hashing algorithm specifically designed to be slow and memory-intensive:

AlgorithmNotes
bcryptIndustry standard since 1999, configurable work factor, widely supported
scryptMemory-hard, good for servers with constrained parallelism
Argon2idWinner of the Password Hashing Competition (2015), recommended for new projects
PBKDF2NIST-recommended, used in many standards (FIPS, PKCS#5)

All of these algorithms are intentionally slow and memory-hungry, making large-scale brute-force attacks economically infeasible.


What to Use Instead of MD5 for Security

For uses where cryptographic security matters (digital signatures, TLS certificates, HMAC):

  • SHA-256 (from the SHA-2 family) — no known practical attacks, widely deployed
  • SHA-3 — completely different design from SHA-2, standardized by NIST in 2015
  • BLAKE3 — extremely fast and secure, excellent for non-password hashing at scale

Quick Reference

PropertyMD5SHA-256bcrypt (passwords)
Output size128 bits256 bits60-char string
Speed (GPU)~10 billion/s~2 billion/s~10,000/s
Collision attacksYes (broken)None knownN/A
Good for filesYesBetterNo
Good for passwordsNeverNeverYes

Try It Online

Generate MD5 checksums for text or verify data integrity with the devtools.apz.me MD5 Hash Generator — runs entirely in your browser with no data sent to any server.

Try it on devtools.apz.me

Free, browser-based tools - no sign-up required, and tool inputs stay in your browser.

MD5 Hash Generator
Back to all articles