MD5

An old 128-bit hash function that is completely broken for security and should only be used where no attacker is involved.

Attackers can craft two different files with the same MD5 digest, so it cannot prove that data is genuine.

In more detail

Collisions can be created in seconds, so MD5 must never protect passwords, signatures or downloads against tampering. Use SHA-256 instead.

Examples

MD5 still appears in old checksums; fine for spotting accidental corruption, useless against an attacker
Collisions can be made for MD5 on purpose, so it cannot prove integrity against a determined attacker.
Forensic records often list MD5 next to SHA-256 so older tools and databases can match; integrity rests on SHA-256.
The course scanner flags hashlib.md5 used for a token fingerprint; use SHA-256 for fingerprints and a password hash for passwords.

Related terms

Taught in

References

Certification courses