October DealsAmazon USOctober deal check: compare before you payAmazon US: current deals, useful picks and tech finds.Check DealsClean PCRecommendedOne scan can reveal what keeps slowing WindowsLook for cleanup and repair opportunities.Run ScanOctober DealsAmazon USDeal season is back - check today's better picksAmazon US: current deals, useful picks and tech finds.See Picks×
Skip to content
World desk4 min

Cryptographic Hash Functions Explained: Why SHA-1 Failed

Cryptographic hashes create compact digests used to check data and support security. The 2017 SHAttered collision showed why SHA-1 should no longer protect new security-sensitive uses.
Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.

A cryptographic hash function turns data of any size into a compact digest. That digest can help detect changes and support security systems, but it is not encryption—and its safety depends on the security property an application needs. SHA-1’s collision resistance failed in a practical 2017 demonstration: researchers produced two different PDFs with the same SHA-1 digest.

What is a cryptographic hash function?

A cryptographic hash function takes an input message—such as a document, file, or block of data—and produces a comparatively short value called a hash or digest. Google describes the digest as a compressed representation of larger data, while NIST explains that even a small change to a message normally produces a markedly different hash. This makes hashes useful for checking whether data has changed. Google’s explanation of the SHA-1 collision and NIST’s explanation of SHA-1 describe these basic roles.

As an Amazon Associate I earn from qualifying purchases.

A hash is not encryption. Encryption is designed to be reversed with a key; a cryptographic hash is not designed to reveal the original input from its digest. As NIST notes, the original message cannot be reconstructed from the hash alone. A digest can help verify data, but it does not itself prove who created the data or guarantee that the data is trustworthy.

Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.

How do hashes work, and what makes one secure?

The function processes the input and returns a digest. A useful cryptographic hash is expected to make certain attacker goals computationally infeasible. The property central to SHA-1’s failure is collision resistance: it should be infeasible to find any two distinct inputs that produce the same digest. Google’s 2017 announcement explains the collision and why it matters.

Collisions are possible in principle because many possible inputs are mapped to a fixed-size digest. Security depends on making it infeasible to find a useful pair, not on claiming that no pair exists. A collision matters when a system treats a digest as a dependable identifier or integrity guarantee. It does not mean that the digest reveals either input, that every use of the algorithm is automatically compromised, or that a digital signature can always be forged; the consequence depends on what the surrounding system trusts the hash to represent.

Why is SHA-1 broken?

SHA-1 no longer meets the practical collision-resistance expectation for security-sensitive uses. On February 23, 2017, Google researchers working with researchers at CWI announced the first practical collision for full SHA-1 and released two PDFs with different contents but identical SHA-1 hashes. The demonstration showed that an attacker could create distinct files sharing a digest that a system might otherwise rely on as a unique or trustworthy identifier. Google’s announcement uses two insurance contracts with drastically different terms as an illustrative risk; it does not report an attack on an actual insurance system.

Google reported the attack’s total scale as 9,223,372,036,854,775,808 SHA-1 computations—nine quintillion. Its account described the first phase as equivalent to 6,500 years of CPU computation and the second as 110 years of GPU computation. These are computation-equivalent figures reported by the researchers, not calendar-time claims about one machine running continuously. Google also said the collision attack was “more than 100,000 times faster than a brute force attack”; that comparison does not make brute force practical. These figures describe the 2017 researchers’ work, not a consumer setup or current cost estimate. Google’s report gives the attack details.

Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.

What should replace SHA-1?

NIST recommends moving SHA-1 security uses to SHA-2 or SHA-3. Its 2022 transition plan sets December 31, 2030, as the planned point for transitioning away from SHA-1 for cryptographic protection across applications. NIST’s policy distinguishes creating new cryptographic protections from handling information protected earlier: SHA-1 may still be needed to process or verify legacy material under applicable guidance. NIST’s hash-function policy and its transition announcement set out the policy and timeline.

“We recommend that anyone relying on SHA-1 for security migrate to SHA-2 or SHA-3 as soon as possible,” said Chris Celi, a NIST computer scientist. NIST published the recommendation on December 15, 2022.

Choosing between SHA-2 and SHA-3 depends on the application’s standards, interoperability needs, approved implementations, and migration constraints. NIST identifies both as alternatives to SHA-1; the cited guidance does not establish a universal performance winner or a requirement to move from SHA-2 to SHA-3.

Independent reader supportYour contribution helps us test, update, and keep practical guides available for everyone.Support on Ko-Fi

Why can replacing a hash take planning?

Some systems use hash digests not only to check data but also to name or locate it. Changing algorithms can therefore affect stored identifiers and communication with older software. Git’s technical transition design illustrates the issue: it describes a move to SHA-256, mappings between SHA-1 and SHA-256 identifiers during transition, and compatibility implications for different versions. That is Git’s design, not a universal migration recipe. Git’s hash-function transition document explains its approach.

Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.

For a system that still relies on SHA-1, identify where it creates new security protections and where it only reads or verifies older material. Plan the replacement around the relevant standards and the systems that exchange or store the resulting identifiers; do not assume that changing the hash in one component leaves compatibility untouched.

Product prices and availability are accurate as of the date/time indicated and are subject to change. Any price and availability information displayed on Amazon at the time of purchase will apply.

Leave a Reply

Your email address will not be published. Required fields are marked *

Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.

More from the Wire

  1. World desk4 min
    How to Spot an AI Voice Scam Before Sending MoneyDon’t rely on how a caller sounds. Pause, call back through a known number, and verify the emergency with another trusted person before sending money.
  2. Mountain View desk4 min
    Google’s SynthID Detector: How to Check AI-Generated Images, Video and AudioGoogle’s SynthID Detector looks for an embedded watermark in supported images, video and audio. Here is what its results do—and do not—show.
  3. Redmond desk20 min
    How to create a link to File or Folder in Windows 11Windows 11 gives you several ways to point to a file or folder without moving or duplicating it. You can create a desktop shortcut,…
Recommended PC Tool
Recommended PC Tool
PC Slower Than It Used to Be?Free scan - under a minute
Outdated Drivers Are Slowing You DownFree scan - exact matches

Two free Windows tools

One Free Minute Could Fix That PC

Before you go - each of these free tools takes about a minute and tackles what quietly slows a Windows PC down.

Special offer. View Outbyte info, uninstall instructions, EULA, and Privacy Policy.