Pcornel
Security · Hashing

MD5

Cheat sheet · https://pcornel.dk/topic.php?topic=4711

Back to the Topic

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.

Remember

  • Broken for security.
  • Fine as a non-security checksum.
  • Never for passwords or signatures.

First checks

  • md5sum file — (non-security checksums only)
  • grep -r -i md5 <code> — find security uses
  • Replacement plan — SHA-256

Commands

openssl x509 -text

Verify in this order

MD5 → collisions trivial

Where it usually breaks

First mismatch in key/secret generation → storage/rotation → trust/certificate validation → protocol negotiation → cryptographic operation → peer/application verification; preserve identity/policy/pre-state before mutation.

Read-only verification commands unless stated otherwise. Confirm syntax for your platform and release. Full reference: https://pcornel.dk/topic.php?topic=4711

Confirmation

Confirm action

Continue?