Glossary
Collision attack
A collision attack finds two different inputs that produce the same hash digest, breaking a hash function's integrity guarantees without ever recovering either input.
A collision attack finds two distinct inputs that hash to the identical digest. This is a different goal from password cracking: cracking recovers the input behind one specific hash, while a collision attack just needs any two inputs that collide, which is a fundamentally easier problem thanks to the birthday paradox — the odds of a collision climb far faster than input count alone would suggest.
MD5 and SHA-1 are both broken for collision resistance: practical, fast collision techniques exist for MD5, and a real-world SHA-1 collision was demonstrated publicly in 2017. That is why both are retired for certificates, code signing and any use case that depends on two different documents never producing the same hash — is MD5 still worth cracking covers that distinction in full.
Collision resistance matters for integrity and signing, not for password storage. A password hash's attacker already knows the digest and wants the matching plaintext, which is a preimage problem, not a collision problem — so a hash can be collision-broken like MD5 while still being the wrong thing to crack quickly, or vice versa.