SHA-1 Still Computes a Hash. The Security Promise Failed.
SHA-1, short for Secure Hash Algorithm 1, is a hash function: a procedure that turns data into a fixed-length result called a digest. It still performs that calculation. The problem is a failed security assumption—researchers have shown that different files can be deliberately made to produce the same SHA-1 digest.
SHA-1's result is 160 bits, commonly displayed as 40 hexadecimal digits. A bit is a single 0 or 1. Hexadecimal packs four bits into each displayed symbol, using 0–9 and a–f.
The U.S. National Institute of Standards and Technology, or NIST, defines the calculation in its Secure Hash Standard. Being able to calculate the documented result doesn't establish that an algorithm remains suitable for every security task.
Why Do Hashing Algorithms Keep Changing?
The two PDFs that shared a fingerprint
On February 23, 2017, researchers from the Dutch research institute CWI and Google demonstrated two different PDF documents with the same SHA-1 digest. The files had different visible contents, yet the value used to identify their contents matched.
That is a collision: different inputs produce the same hash output. A cryptographic hash is expected to make deliberately finding such a pair impractical. The demonstration showed that SHA-1 no longer met that expectation.
CWI's announcement of its research explains the concern for signatures. If a signature depends on a hash that two different files share, a signature intended for one can potentially be made to apply to the other.
A bare hash is not itself a digital signature. A signature uses keys, data values involved in signing and checking, to supply additional evidence about the signed data. The hash can be a component of that process, which is why its collision resistance matters.
A collision doesn't reverse the calculation
The PDF result didn't show how to take any SHA-1 digest and recover the original file. Nor did it show that any arbitrary existing document could be altered however an attacker wanted while preserving its digest.
Those are different problems. Finding a pair of inputs that collide is different from finding an input for a specified result, or finding a substitute for a particular existing file.
A matching SHA-1 value can no longer carry the same security confidence against deliberately constructed collisions. Calling the digest a “unique fingerprint” hides that failure.
More generally, a hash function produces a compact result for comparison. It isn't encrypted data waiting to be decrypted, and a fixed-size result isn't a mathematical guarantee of uniqueness.
- Pull the drive from an old computer and read it on your laptop in a minute or two.
- Build a home practice lab for imaging and file recovery with free tools like Autopsy.
- Swap drives without tools or a reboot, so your time goes to the data and not the hardware.
Password guessing is another weakness to address
Passwords present a separate problem. An attacker with stolen password hashes can try possible passwords, hash each guess and compare the result with the stored value.
That is guessing and checking. It doesn't require finding a collision between two carefully engineered PDFs or reversing the hash function.
A fast general-purpose hash helps the attacker test guesses quickly. Replacing plain SHA-1 with one plain SHA-256 calculation therefore doesn't by itself create suitable password storage.
The OWASP password-storage guidance recommends purpose-built methods such as Argon2id, with a unique salt, a value combined with each password, and extra computing work designed to make repeated guesses more expensive.
The transition date isn't a safe-until date
In a December 2022 announcement, NIST recommended moving security uses of SHA-1 to SHA-2 or SHA-3 as soon as possible. It announced December 31, 2030 as the endpoint for phasing out remaining uses within that plan.
That is a transition plan, not a promise that SHA-1 is safe until the deadline or a worldwide migration schedule. The appropriate replacement also depends on the job: file hashing and password storage need different decisions.
A SHA-1 digest can look perfectly normal while offering less assurance than the application expects. The important change is in what the match can justify, not whether the computer can still print forty characters.
Hash Collisions: When Different Files Leave the Same Mark

Digital Signatures: What a Verified File Actually Tells You

Hash Functions: Small Outputs With a Big Job

QUOTE:
"Amateurs hack systems, professionals hack people."
