SHA-0 Explained: The Hash Standard That Lasted Two Years

SHA-0 explained in plain terms means understanding the hash standard that lived for only two years, a design from 1993 that was published, withdrawn and replaced before most people ever used it. The central question is why a standard would be pulled so quickly when it looked sound, and the answer is that one missing rotation left a flaw in its message schedule, so SHA-0 gave the world a lesson in how a single bit can break a standard, and that lesson is the whole point of the design.

SHA-0 is the original Secure Hash Algorithm, published by NIST in May 1993 as FIPS 180 and designed by the NSA, producing a 160-bit digest from 512-bit blocks through 80 rounds. It turns a message into a fingerprint by chaining five 32-bit state words through a Merkle-Damgård construction, and it is built on the ideas Ronald Rivest used in MD4 and MD5, which means the design trades novelty for a proven layout, and that conservatism is what makes it unlike the hashes of its era.

This article explains what SHA-0 is, how it works, and where it runs in the real world.

Key takeaways

  • SHA-0 is the first Secure Hash Standard, from 1993.
  • It was published as FIPS 180 and withdrawn in 1995.
  • It produces a 160-bit digest through 80 rounds.
  • It differs from SHA-1 by a single one-bit rotation.
  • It was broken by Chabaud and Joux in 1998.

What SHA-0 is

SHA-0 is a hash that turns a message into a 160-bit fingerprint with 80 rounds of simple logic, and that shape is what makes it unusual among standards. Each block passes through five state words and four different round functions, which means the hash mixes the message thoroughly, and because the rounds are simple, the design runs fast on the hardware of its day.

Its signature feature is the missing rotation. Most hashes rotate their message words as they expand them, but SHA-0 expands its 16 words into 80 without rotating, which means each bit position stays in its own lane, and because the lanes never mix, an attacker can work on one lane at a time.

The design was a reaction to the need for a government standard. The United States needed a hash for its Capstone project, so the NSA built one on Rivest’s MD4 and MD5 ideas, because a standard had to be conservative and well understood, and that practicality is what made SHA-0 worth publishing.

It became one of the best-known broken hashes in the world, and it is named in every discussion of the field. SHA-0 was withdrawn by the NSA shortly after publication, it was replaced by SHA-1 in 1995, and it is still the first example engineers meet when they learn that a standard can be wrong, which means the design survives as a lesson even though nobody uses it.

Its most famous property is its short life. SHA-0 lasted about two years, which means it is the shortest-lived hash standard ever published, and because the replacement differed by a single rotation, the story is the clearest proof that small details decide security.

Our guide to SHA-3 explains the sponge hash that became the modern standard, and our guide to SPONGENT explains the tiny sponge hash built for hardware.

How SHA-0 works

Everything starts with the padding, which prepares the message. SHA-0 appends a one bit, then zeros, then the 64-bit message length, which means the input always ends on a 512-bit boundary, and because the length is included, two messages of different lengths can never collide by accident.

Each step begins with a block, which is split into sixteen words. SHA-0 takes a 512-bit block and reads it as sixteen 32-bit big-endian words, which means fresh data arrives at every block, and because the words are big-endian, the layout matches the standard’s own description.

The message schedule is what makes the design work as a whole. The sixteen words are expanded into eighty with a linear recurrence, which means each round gets its own word, and because SHA-0 never rotates the recurrence, each bit position depends only on the same position in earlier words.

The rounds spread the effect further. Eighty rounds mix the five state words with the expanded words, the round constants and the round functions, which means the value is scrambled thoroughly, and because the functions change every twenty rounds, the mixing varies as the block is consumed.

The chaining is what turns the rounds into a digest. After the last round, SHA-0 adds the working state back into the chaining value, which means the digest depends on the whole message, and because the feed-forward is a simple add, the design needs no extra machinery for the chain.

The digest comes from the final chaining value, read out as 160 bits. SHA-0 outputs the five state words joined together, which means the result is a fixed size whatever the input, and that size is exactly what a signature needs for its fingerprint.

A dark office desk with a laptop showing a glowing green cipher diagram, a brass key and a notebook beside it
A dark office desk with a laptop showing a glowing green cipher diagram, a brass key and a notebook beside it, shows how SHA-0 works: blocks take turns passing through eighty rounds, block after block, until a digest emerges.

Comparing SHA-0 with other Secure Hash Algorithms

SHA-0 is one of several hashes in the Secure Hash family, and each was built with a different emphasis. SHA-1 is the fixed version that replaced it in 1995, SHA-256 is the stronger member that became the modern default, and SHA-0 is the one that taught the field what a single rotation is worth, while each approach trades something for something else.

The table below sets out the main contrasts between the leading approaches.

Aspect SHA-0 SHA-1 SHA-256
Output size 160 bits 160 bits 256 bits
Year 1993 1995 2001
Message schedule No rotate Rotate by 1 Sigma functions
Collision attack 2 to the power of 61 2 to the power of 63 None practical
Best for History lessons Legacy only General hashing

The practical result is that SHA-0 is the right choice for history lessons, SHA-1 suits legacy systems only, and SHA-256 fits general hashing instead.

Where SHA-0 is used

Teaching uses it as the broken-standard example. Courses introduce SHA-0 when they explain that a standard can be wrong, because it is the clearest case of the idea in a real publication, and a student who understands SHA-0 understands why review matters more than authority.

Research uses it as a case study in message schedules. Engineers still cite SHA-0 when they discuss how a schedule should mix bit positions, because it is the clearest example of the flaw in a real design, and that lesson shapes how new hashes are built today.

Cryptanalysis uses it as the first SHA target. Chabaud and Joux built their 1998 attack on the missing rotation, because the flaw made local collisions easy to chain, and that attack is the reason the community learned to test schedules bit by bit.

History uses it to tell the story of the SHA family. The standard ran from SHA-0 in 1993 through SHA-1 in 1995 to SHA-2 in 2001, and SHA-0 is remembered wherever that story is told, which means it survives as history as well as a working design.

Standards work uses it as a warning about secrecy. The NSA gave no public explanation for the withdrawal, because the flaw was never described, and that silence is the reason the community now demands open review before it trusts a standard.

Strengths and limits

The greatest strength of SHA-0 is its lesson. A standard that failed in public taught the field more than a quiet success ever could, and that strength is real, measured in the review culture it helped create and confirmed by every hash designed since.

It is also a strength that the design is easy to explain. Eighty rounds and a message schedule is a design anyone can describe, and that simplicity is worth more than cleverness in a field where a hash nobody can audit is a hash nobody trusts.

The limits are real, though, and the biggest is the flaw itself. SHA-0 has a known collision attack at 2 to the power of 61, which means it must never be used for anything at all, and a system that needs a hash must use a modern standard instead.

SHA-0 checklist

  • Use SHA-0 for study only, never for real hashing.
  • Remember it outputs 160 bits through 80 rounds.
  • Note the message schedule has no rotation.
  • Compare it with SHA-1 to see what one bit changes.
  • Study the Chabaud and Joux attack, which broke it.
  • Check the standard, since FIPS 180 was withdrawn in 1995.
  • Keep real digests behind standard hashes for signatures.
  • Read the SHA-1 paper to see how the fix was built.
  • Choose SHA-256 when a standard hash is required.

Frequently asked questions

What is SHA-0 in simple terms?

It is the original 1993 Secure Hash Algorithm that turns any message into a 160-bit digest through 80 rounds.

Who designed SHA-0?

The NSA, which published it through NIST as FIPS 180 in May 1993.

How is SHA-0 different from SHA-1?

Both are 160-bit hashes, but SHA-1 adds a single one-bit rotation to the message schedule that SHA-0 lacks.

Is SHA-0 still secure?

No, it was withdrawn in 1995 and broken in 1998, so it must never be used for anything.

Where is SHA-0 used?

In teaching, in research about message schedules, in cryptanalysis, and in the history of the SHA family.

When should I use SHA-0?

When you study hash history, when you research message schedules, or when you want the shortest-lived standard ever published.

The bottom line

SHA-0 explained in one line is this: the two-year standard, a 1993 design of eighty rounds and a missing rotation that was withdrawn before it spread and taught the field that one bit can break a standard.

It is proof that review beats authority, and the reason it still matters is that every hash standard designed since has been judged partly by the lesson SHA-0 taught.

This article is general information about how SHA-0 works, not advice about choosing encryption for a particular device or system.

Latest articles

Scroll to Top