MD5 is one of those names that appears everywhere in web work — in download pages, plugin settings, cache file names, old database tables — and it is often described in ways that are out of date. This article explains what an MD5 hash is, where it is still useful, and the one thing it should never be used for any more.
What a hash function does
A hash function takes input of any length — a word, a page, a 2 GB file — and produces a short, fixed-length value called a hash or digest. MD5 produces 128 bits, usually written as 32 hexadecimal characters:
hello → 5d41402abc4b2a76b9719d911017c592
Three properties make hashes useful:
- Deterministic — the same input always gives the same hash.
- Sensitive — changing a single character changes the hash completely.
- One-way — you cannot calculate the input from the hash; you can only guess inputs and compare.
A hash is not encryption. Encryption is reversible with a key; a hash is not reversible at all. "Encrypting with MD5" is a common phrase, but it describes something MD5 does not do.
Where MD5 is still fine
- Checking that a file was not damaged during download or copying. If the published checksum matches the file's hash, the file arrived intact.
- Detecting changes — comparing hashes of a page's content between two crawls shows whether it changed, without storing both copies.
- Finding duplicates — identical texts or files have identical hashes, which makes exact duplicates easy to find.
- Cache keys and file names — turning a long URL or a set of parameters into a short, fixed-length identifier.
In all of these, nobody is trying to fool the system. That is the key condition.
Where MD5 must not be used
MD5 has been considered cryptographically broken since the mid-2000s. Researchers can deliberately create two different inputs with the same MD5 hash (a "collision"), and modern hardware can calculate billions of MD5 hashes per second. Two consequences follow:
- Do not store passwords as MD5 hashes. Leaked MD5 password hashes are cracked quickly by trying common passwords and precomputed tables. Use a dedicated, deliberately slow password hashing function — bcrypt, scrypt or Argon2 — which every modern framework provides. In PHP, that is
password_hash(). - Do not rely on MD5 to prove a file is authentic when an attacker might have tampered with it. For security checks, use SHA-256 or stronger, ideally with a signature.
If you find MD5 password hashes in an old site or plugin, treat it as a security issue to fix, not a detail.
Generating an MD5 hash
The free MD5 Generator in your SEO Melody account returns the MD5 hash of any text you enter — handy for comparing values, building cache keys or checking what a legacy system expects. The text is sent to our server to be hashed, so, as with any online tool, do not paste real passwords or secrets into it.
Summary
MD5 is a fast fingerprint for detecting accidental changes and duplicates. It is not encryption, not a way to store passwords and not proof against deliberate tampering. Use it where nobody is trying to cheat, and use modern algorithms everywhere else.