Cryptographic hash functions · 05 Weaknesses and attacks

Hash functions: weaknesses and attacks

MD5 and SHA-1 collisions, chosen-prefix attacks, length extension and precomputed tables for passwords.

MD5 collisions
Since 2004 they can be found in seconds. In 2012 the Flame malware used an MD5 collision to forge a code-signing certificate.
SHA-1 collisions
The first practical collision in 2017; in 2020 a “chosen-prefix” attack made it possible to create two different documents with attacker-chosen beginnings and the same value.
Length extension
With Merkle-Damgård constructions, knowing the value of a secret message lets you compute another for the extended message. It breaks naively built authentication codes.
Precomputed tables
Against unprotected password hashes, huge tables of precomputed values or dictionary attempts are used.
Quantum computers
Grover’s algorithm would speed up the search for preimages, but 256-bit values are still considered adequate.
Continue with
06 Use today

Hash functions today

Where hash functions are used every day: digital signatures, certificates, downloads, passwords, blockchain, version control and digital evidence.

↑