Pcornel
Browse topics
Options
Recent
Favorites
Security · Technical reference

MD5

Direct answer

MD5 produces a 128-bit hash and is broken for security, since collisions can be created easily. It is only acceptable as a non-security checksum, not for passwords or signatures.

When to use this

Use this when MD5 shows up in a system and you must decide whether it is a security risk.

First 30 seconds

1. MD5 is broken (collisions trivial).

2. Never for security, passwords or signatures.

3. OK only as non-adversarial checksum.

4. Replace in protocols and code.

5. Old password hashes must be migrated.

Operational verification

MD5 → collisions trivial

Context & applicabilityCommon mistakes · platform/version boundaries
Platform / version applicability
Cryptography, PKI and secrets
applies
Structured applicability is explicit Topic metadata; it does not infer compatibility beyond the stored rows.
At a glance

Operational reference

Fast context before you go deeper.

PlatformCryptography, PKI and secrets
Scope / prerequisiteUse this when MD5 shows up in a system and you must decide whether it is a security risk.
What next?3 suggested next steps
Evidence1
On this pageJump to a specific section
Operational workflow

Verification & Troubleshooting

Start with the observed symptom, prove the nearest boundary, and move outward only when the current state is understood.

2 steps Observe → verify → isolate → change minimally → repeat the original test.
ObservedRecord what the original test actually shows

Capture the concrete output, symptom, packet, log or counter before changing anything.

Step 1 Finding MD5 use Verify boundary
  • Search code for md5(, MessageDigest.getInstance("MD5"), hashlib.md5.
  • Check password databases for 32-hex-character hashes without salt.
  • openssl x509 -text for md5WithRSAEncryption signatures.
  • Network: RADIUS (MD5 in the protocol — see BlastRADIUS, 2024) and CHAP still rely on MD5; protect with RadSec/IPsec.
Step 2 Common mistakes Narrow the fault
  • MD5 for integrity against attackers.
Evidence references

Evidence · 1 on this Topic

Expected observations and documentation recipes are reference material. Record actual output, device identity, scope and time before claiming a verified result.

observation · 1
Key points
  • Broken for security.
  • Fine as a non-security checksum.
  • Never for passwords or signatures.
Key checks
  • md5sum file — (non-security checksums only)
  • grep -r -i md5 <code> — find security uses
  • Replacement plan — SHA-256
ReferenceWhy it matters1 section · depth on demand

Status

Collisions can be produced in seconds, and the Flame malware used an MD5 collision to forge a Microsoft code-signing certificate. Use MD5 only as a non-security checksum (detecting accidental corruption). Replace it in password storage, signatures, certificates, RADIUS/TACACS shared-secret derivations where possible, and HMAC-MD5 in new configurations.

ReferenceImportant terms & boundaries2 sections · depth on demand

In depth

MD5 produces a 128-bit digest and is thoroughly broken: collisions can be generated in seconds, and it has been used to forge certificates. It must not be used for security purposes.

Acceptable remaining uses are limited to non-adversarial checks, such as detecting accidental file corruption where an attacker cannot influence the data, or legacy compatibility where a stronger hash is also verified.

Replace MD5 in:

ContextReplacement
File integrity verificationSHA-256
Password storageArgon2id/bcrypt/scrypt
Network authentication (OSPF/BGP MD5)HMAC-SHA authentication, TCP-AO for BGP
SNMPv3 authSHA-2 variants
Forensic hashesSHA-256 (MD5 only alongside, for legacy tools)

Where MD5 is still acceptable

Only for non-security checks such as detecting accidental corruption or deduplication where no attacker can choose input. Never for passwords, signatures, certificates or file integrity against tampering. Flame malware (2012) used an MD5 collision to forge a Microsoft code-signing certificate.

Source basisSource attribution states what this section is based on; it is not independent proof that the current environment matches it.
Additional reference context Scope · expected state · examples · history · terminology Open only when you need the supporting context
Technical verification history

Verification history & basis

When and against what this Topic was checked. Later text edits do not count as a new check.

2026-09-14 · vendor docCryptography, PKI and secrets current

Authoritative/upstream documentation reviewed for bounded claims in Hashing → MD5. Documentation verification only; this is not observed lab or production Evidence.

Basis: https://csrc.nist.gov/pubs/fips/180-4/upd1/final · confidence 94%
Confirmation

Confirm action

Continue?