SHACAL explained in plain terms means understanding the cipher that was built by turning a hash function inside out, a design from Helena Handschuh and David Naccache that takes the SHA compression function and uses it to encrypt. The central question is why anyone would build a cipher from a hash, and the answer is that a good hash already mixes data thoroughly, so turning it into a cipher is a natural step.
SHACAL is a family of block ciphers designed by Helena Handschuh and David Naccache and submitted to the European NESSIE project in 2000. SHACAL-1 encrypts 160-bit blocks and SHACAL-2 encrypts 256-bit blocks, both with keys of up to 512 bits, and they are built by running the SHA-1 and SHA-256 compression functions as encryption rounds, which means the hash becomes the cipher.
This article makes the case for SHACAL, explains what it is, how it works, and where its ideas still earn their keep.
Key takeaways
- SHACAL is a cipher family built from SHA compression functions.
- SHACAL-1 uses SHA-1 with a 160-bit block; SHACAL-2 uses SHA-256.
- It was submitted to the NESSIE project in 2000.
- SHACAL-2 was selected by NESSIE as a recommended cipher.
- It shows how a hash can become a block cipher.
What SHACAL is
SHACAL is a cipher that encrypts data in blocks by treating the message as the key schedule of a hash function, passing the block through the compression rounds of SHA. Each round mixes the block with a subkey derived from the message, and the rounds repeat eighty times for SHACAL-1 and sixty-four times for SHACAL-2, which means the hash’s own mixing becomes the encryption.
Its signature feature is the reversal of roles. In a normal hash, the message is the data and the key is fixed, but in SHACAL the message becomes the key and the block becomes the data, which means the compression function that normally fingerprints data now encrypts it, and that reversal is what makes the design so unusual.
The design was a reaction to the NESSIE call for new primitives. When Europe asked for a portfolio of cryptographic tools, Handschuh and Naccache offered a cipher built from a trusted hash, because a compression function that had survived years of analysis seemed a safe foundation, and that trust is what made SHACAL stand out.
It became one of the designs in the NESSIE portfolio, and SHACAL-2 was selected as a recommended block cipher. Reaching the portfolio was itself a mark of quality, because NESSIE chose only designs that survived public cryptanalysis, and SHACAL-2 has stood in that list for more than twenty years.
Its most famous property is the name. SHACAL is short for Secure Hash Algorithm Cipher, a name that says exactly what the design does, and it has stuck through two decades of study, which is a reminder that cryptographers still enjoy a name that explains itself.
Our guide to SHA-3 explains the modern standard hash, and our guide to AES encryption explains the standard that protects messages today.
How SHACAL works
Everything starts with the key schedule, which expands the message into the subkeys each round needs. The message words are stretched through a series of operations that produce a different subkey for every round, and the schedule is designed so that the subkeys look random even when the message is simple, which stops an attacker from working backwards from the subkeys to the key.
Each round begins with the compression step, which takes the block and transforms it. The block passes through the SHA round function, which mixes it with the round subkey and scrambles it through additions and rotations, and the output feeds the next round, which is how the confusion spreads from one word to the next.
The round function is what makes the cipher work as a whole. SHACAL uses the same Boolean functions as SHA, from choice to majority to XOR, and because every word of the block passes through those functions, a small change in the input spreads quickly through the whole block.
The rotation step spreads the effect further. After the Boolean functions, the words are rotated by fixed amounts, so that bits changed by one operation move to positions fed by different operations in the next round, and because the rotation is applied in every round, a single changed bit spreads across the whole block within a few rounds.
The key addition step mixes the subkey into the round. The block is added to the round subkey before the round function runs, which means the message influences the data in every round, and because the subkeys change from round to round, the cipher’s behaviour evolves as the rounds progress rather than repeating itself.
Decryption runs the same rounds in reverse, starting with the final subkey and working backwards through the rounds. The receiver applies the inverse of each step in the opposite order, and the plaintext comes back out, which means the same design encrypts and decrypts, and that symmetry is the great advantage of building on a compression function.

Comparing SHACAL with other block ciphers
SHACAL is one of several block ciphers built from unusual foundations, and each was built with a different emphasis. AES is the standard with a substitution-permutation design, Whirlpool is the hash built like a block cipher, and SHACAL is the cipher built like a hash, while each approach trades something for something else.
The table below sets out the main contrasts between the leading approaches.
| Aspect | SHACAL-2 | AES | Whirlpool |
|---|---|---|---|
| Type | Block cipher | Block cipher | Hash function |
| Block size | 256 bits | 128 bits | 512 bits |
| Rounds | 64 | 10 to 14 | 10 |
| Built from | SHA-256 | New design | AES-like cipher |
| Best for | Historical interest | General use | Long digests |
The practical result is that SHACAL is the right choice for historical interest, AES suits general use everywhere else, and Whirlpool fits long digests instead.
Where SHACAL is used
Research uses it as a case study in hash-based design. Cryptographers still cite SHACAL when they discuss building ciphers from hashes, because it is the clearest example of the idea in a serious design, and that lesson shapes how new ciphers are judged today.
Teaching uses it to show how hashes and ciphers relate. SHACAL is clean enough to explain in a lecture and well documented enough to implement in an afternoon, which makes it a favourite example in cryptography courses that cover the boundary between hashing and encryption.
Benchmarks use it to measure hash-based designs. When someone builds a new library or a new piece of hardware, SHACAL is one of the designs they test, because its SHA rounds exercise different parts of a processor than other ciphers do, and a platform that runs SHACAL well is likely to run most ciphers well.
Standards history uses it to mark the NESSIE era. SHACAL was part of the European effort to build a portfolio of trusted primitives, and it represents the hash-based path that effort explored, which means historians of the field return to it whenever they ask what European cryptography might have looked like.
Cryptanalysis uses it as a warning about reuse. SHACAL-1 attracted analysis that showed the limits of building on SHA-1, which means the cipher is studied as an example of how a trusted part can still make a weak whole, and that warning is why new designs are tested so hard today.
Strengths and limits
The greatest strength of SHACAL is its foundation. A cipher built on a hash function that survived years of analysis starts from a trusted part, and that grounding is real, measured in the years of study behind SHA and confirmed by the designers’ own reasoning about the compression function.
It is also a strength that the design is easy to understand. A cipher built from SHA rounds is easy to implement where SHA already exists, easy to analyse, and easy to test, 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 adoption. SHACAL never found a large deployment, which means smaller communities of implementers, fewer independent reviews in recent years, and less tooling than AES enjoys, and a system that must interoperate will usually choose AES instead.
SHACAL checklist
- Use SHACAL for study and history, not for new systems.
- Remember SHACAL-2 is the NESSIE-recommended version.
- Study its rounds to understand hash-based design.
- Compare it with AES to see the foundation trade-off.
- Note its 256-bit block when benchmarking.
- Test against published test vectors before trusting any implementation.
- Keep keys random and protect them as carefully as with any cipher.
- Use a proper mode of operation, never raw block encryption.
- Choose AES for any system that needs real protection today.
Frequently asked questions
What is SHACAL in simple terms?
It is a block cipher built by turning the SHA compression function into encryption rounds, with SHACAL-1 based on SHA-1 and SHACAL-2 based on SHA-256.
Why build a cipher from a hash?
Because a good hash already mixes data thoroughly, so its compression function makes a natural encryption round, and reusing a trusted part saves design effort.
How is SHACAL different from AES?
Both encrypt blocks, but SHACAL reuses the SHA round function, while AES was designed from scratch with its own substitution-permutation rounds.
Is SHACAL still secure?
SHACAL-2 has no practical attack published against it, but it is less widely reviewed than AES, so it is studied as a design rather than chosen for new systems.
Who designed SHACAL?
Helena Handschuh and David Naccache, who submitted it to the European NESSIE project in 2000.
When should I use SHACAL?
When you study hash-based design, when you research the NESSIE portfolio, or when you want a cipher that shows how hashes and encryption connect.
The bottom line
SHACAL explained in one line is this: the hash that became a cipher, a NESSIE design from 2000 that proved a compression function could encrypt.
It is proof that good parts can be reused, and the reason it still matters is that every cipher designed since has been judged partly by the lesson SHACAL taught.
This article is general information about how SHACAL works, not advice about choosing encryption for a particular device or system.







