Shabal explained in plain terms means understanding the French hash that entered the race to replace SHA-1 and SHA-2, a design from 2008 that reached the second round of NIST’s SHA-3 competition before falling short. The central question is what made a hash from a French research team stand out among sixty-four entries, and the answer is that Shabal built its security on a keyed permutation with counters, a structure no other candidate shared, and that originality is what carried it as far as it went.
Shabal is a cryptographic hash function submitted to the NIST hash function competition in 2008 by a team from France Télécom’s research labs. It turns a message of any length into a fixed-size fingerprint, and it is unusual because its core is a permutation keyed by the message itself, with three counters tracking how far the computation has gone, which means the design mixes the message into its own machinery rather than bolting it on the side.
This article makes the case for Shabal, explains what it is, how it works, and where its ideas still earn their keep.
Key takeaways
- Shabal is a French SHA-3 candidate from 2008.
- It is built on a keyed permutation with three counters.
- It reached the second round of the NIST competition.
- It offers digests from 192 to 512 bits.
- It is used in research and in hash history today.
What Shabal is
Shabal is a hash that turns a message into a short fingerprint, and that fingerprint is what lets software check whether a file or a message has changed. A user feeds in a document of any size, Shabal processes it in blocks, and out comes a fixed-length digest, which means two different files should never produce the same digest, and that promise is the whole point of a hash function.
Its signature feature is the keyed permutation at its heart. Most hashes feed the message into a fixed compression function, but Shabal treats the message block as the key of a permutation applied to a large internal state, which means the message itself drives the scrambling, and because the permutation is applied three times per block, the mixing runs deep before the next block arrives.
The design was a reaction to the SHA-1 crisis. By 2008, researchers knew SHA-1 was weakening and SHA-2 might share its flaws, so NIST asked the world for a replacement, and the French team answered with a design that trusted a simple, well-studied permutation rather than a new and untested one, because a familiar building block is easier to trust than a clever new one.
It became one of the best-known second-round candidates in the world, and it is named in the histories of the SHA-3 competition. Shabal was one of fourteen designs chosen for the second round from sixty-four submissions, it was studied intensely for a year, and it was eliminated when NIST picked its five finalists, which means the design reached the last sixteen of a global contest and fell just short of the final.
Its most famous property is the counters. Three 64-bit counters tick forward as the message is processed, marking the position of each block, which means the permutation never repeats the same work in the same way twice, and that position-awareness is the reason the design resists attacks that try to replay one block in place of another.
Our guide to SHA-3 explains the standard that won the contest Shabal entered, and our guide to Grøstl explains another SHA-3 candidate that reached the final five.
How Shabal works
Everything starts with the state, a large set of words that carries the running fingerprint from one block to the next. Shabal initialises that state from the requested digest size, which means the same algorithm can produce a 192-bit or a 512-bit digest, and because the initial state depends on the size, the two versions behave like different hashes from the first step.
Each block begins with the message, which is treated as the key for the permutation. The block is combined with the state and the three counters, and the permutation is applied, which means the message directly controls how the state is scrambled, and because the key changes with every block, the scrambling never settles into a pattern an attacker can follow.
The triple application is what makes the design work as a whole. The permutation runs three times on each block, with the message block mixed in again between runs, which means every block is stirred far more than once, and because the three runs use different counter values, each run sees a different version of the state.
The counters spread the effect further. As each block is processed, the counters advance, and their values feed into the permutation, which means the position of a block is baked into the state, and because a block moved to another position would meet different counter values, the design resists attacks that shuffle blocks around.
The finalisation is what turns the state into a digest. After the last block, Shabal runs the permutation three more times with no new message, which means the state is stirred clean of any trace of the padding, and because the finalisation uses the counters one last time, the digest depends on the whole message and nothing else.
The digest comes from the final state, trimmed to the length the user asked for. Shabal takes the state words and outputs as many bits as requested, from 192 to 512, which means one algorithm serves every digest size, and that shared core is what makes the variable output possible.

Comparing Shabal with other SHA-3 candidates
Shabal is one of several hashes that entered the SHA-3 competition, and each was built with a different emphasis. Keccak is the sponge that won the contest with a simple absorbing design, Grøstl is the wide-pipe finalist built from AES-like permutations, and Shabal is the one built on a keyed permutation with counters, while each approach trades something for something else.
The table below sets out the main contrasts between the leading approaches.
| Aspect | Shabal | Keccak | Grøstl |
|---|---|---|---|
| Construction | Keyed permutation | Sponge | Wide pipe |
| Output sizes | 192 to 512 bits | 224 to 512 bits | 224 to 512 bits |
| Contest round | Round 2 | Winner | Finalist |
| Year | 2008 | 2008 | 2008 |
| Best for | Hash history | Standard use | Research |
The practical result is that Shabal is the right choice for hash history, Keccak suits standard use everywhere else, and Grøstl fits research instead.
Where Shabal is used
Research uses it as a case study in keyed permutations. Cryptographers still cite Shabal when they discuss designs that treat the message as a key, because it is the clearest example of the idea in a practical hash, and that lesson shapes how new permutation-based designs are judged today.
Teaching uses it to show the SHA-3 contest. Cryptography courses introduce Shabal when they explain how NIST ran its competition, because it is a strong design that still lost, and a student who understands Shabal understands that a contest is won on the whole package, not on one clever idea.
History uses it to tell the story of 2008. The SHA-3 competition is one of the great stories of modern cryptography, and Shabal is remembered wherever that story is told, which means it survives as history long after it stopped being a serious tool.
Benchmarks use it to measure permutation designs. When someone builds a new library or a new piece of hardware, Shabal is one of the designs they test, because its triple permutation exercises different parts of a processor than other hashes do, and a platform that runs Shabal well is likely to run most permutation hashes well.
Standards history uses it to mark the French contribution. Shabal was part of the international effort that produced the world’s hash standard, and it represents the keyed-permutation path that contest explored, which means historians of the field return to it whenever they ask what else the contest could have chosen.
Strengths and limits
The greatest strength of Shabal is its originality. A hash built on a keyed permutation with counters is unlike any other candidate, and that distinctness is real, measured in the attention it drew from analysts and confirmed by its place in the second round of a sixty-four-entry contest.
It is also a strength that the design is built from familiar parts. A permutation made of additions, rotations and exclusive-ors is easy to implement and easy to analyse, and that simplicity is worth more than cleverness in a field where hidden complexity usually means hidden flaws.
The limits are real, though, and the biggest is that it lost the contest. NIST chose Keccak as SHA-3, and Shabal has never earned the deployment or the review that a standard enjoys, which means Shabal must never be used for anything that needs real protection today, and its value is entirely as a lesson.
Shabal checklist
- Use Shabal for study and history, never for new security.
- Remember it is a French SHA-3 candidate from 2008.
- Study its keyed permutation to understand message-driven mixing.
- Compare it with Keccak to see the contest trade-off.
- Note it reached round two but not the final five.
- Try its variable output to see one design serve many sizes.
- Keep real secrets behind standard hashes, not Shabal.
- Read the contest story to see how SHA-3 was chosen.
- Choose SHA-3 for any system that needs a standard today.
Frequently asked questions
What is Shabal in simple terms?
It is a hash function from 2008 that turns any message into a fingerprint, built around a permutation that uses the message itself as its key, with counters tracking each block.
Who designed Shabal?
A team from France Télécom’s research labs, who submitted it to NIST’s SHA-3 competition in 2008 as one of sixty-four entries.
How is Shabal different from Keccak?
Both entered the SHA-3 contest, but Shabal is built on a keyed permutation applied three times per block, while Keccak is a sponge that absorbs the message and squeezes out the digest.
Is Shabal still secure?
Yes, no practical attack against it has been published, though it lost the SHA-3 contest and has never had the review or deployment of a standard, so it is not a safe choice for new systems.
Where is Shabal used?
In research, in teaching about the SHA-3 competition, and in hash history, wherever a strong design that still lost is needed as an example.
When should I use Shabal?
When you study keyed-permutation hashes, when you tell the story of the SHA-3 contest, or when you want a candidate that reached the second round.
The bottom line
Shabal explained in one line is this: the French contender, a 2008 design that keyed its permutation with the message itself and reached the second round of the race for SHA-3.
It is proof that originality can carry a design a long way, and the reason it still matters is that every hash designed since has been judged partly by the lesson Shabal taught.
This article is general information about how Shabal works, not advice about choosing encryption for a particular device or system.







