N-Hash explained in plain terms means understanding one of the first hash functions ever built from a block cipher, a design from 1990 that turned the FEAL cipher’s round function into a fingerprint maker. The central question is why anyone would build a hash out of a cipher instead of designing one from scratch, and the answer is that a cipher’s round function already scrambles data well, so reusing it was the fastest way to a working hash, and that reuse is the whole point of the design.
N-Hash is a cryptographic hash function proposed in 1990 by researchers at NTT, the Japanese telephone company, producing a 128-bit digest. It turns a message of any length into a fixed fingerprint by processing 128-bit blocks through the round function of the FEAL block cipher, and it is built on the idea that a hash can borrow its strength from a cipher, which means the design needs no new mathematics, and that borrowing is what makes it unlike the dedicated hashes of its era.
This article explains what N-Hash is, how it works, and where it runs in the real world.
Key takeaways
- N-Hash is a hash from 1990, built at NTT in Japan.
- It reuses the round function of the FEAL block cipher.
- It produces a 128-bit digest from 128-bit blocks.
- It was one of the first cipher-based hash designs.
- Later attacks showed weaknesses that taught designers lessons.
What N-Hash is
N-Hash is a hash that turns a message into a fingerprint by running it through a cipher’s machinery, and that borrowing is what makes it unusual among early hashes. A block cipher scrambles data with a key, and N-Hash feeds the message through that scrambling without a secret key, which means the cipher’s strength becomes the hash’s strength, and that transfer is what let the design work at all.
Its signature feature is the FEAL round function. FEAL was NTT’s own block cipher, built from simple additions, rotations and xors, which means N-Hash could reuse a function the designers already trusted, and because the function was well understood, the hash inherited its analysis for free.
The design was a reaction to the lack of dedicated hashes. In 1990, MD4 was brand new and few hash designs existed, so NTT built one from parts it already had, because a working hash was needed and a cipher was at hand, and that practicality is what made N-Hash worth publishing.
It became one of the best-known early hashes in the world, and it is named in every history of hash design. N-Hash showed that a hash could be built from a cipher, it was studied in the first wave of hash cryptanalysis, and it is still the first example students meet when they learn that borrowing strength has limits, which means the design survives as a lesson even though nobody uses it today.
Its most famous property is its weakness. Differential cryptanalysis found collisions in N-Hash in the early 1990s, which means the borrowed strength was not enough, and because the attacks were published, the design became a warning rather than a tool.
Our guide to MD4 explains the dedicated hash that appeared the same year, and our guide to HAVAL explains the later hash that learned from N-Hash’s fate.
How N-Hash works
Everything starts with the message split into 128-bit blocks, which the hash processes one at a time. N-Hash takes the message and cuts it into blocks of sixteen bytes, which means the hash works on fixed-size pieces, and because the blocks are wide, the design has plenty of room to mix data into.
Each block begins with the FEAL round function, which scrambles the block with the running state. N-Hash feeds the block and the previous digest into the cipher’s rounds, which means every block is mixed with everything that came before, and because the rounds use addition, rotation and xor, the mixing spreads quickly.
The chaining is what makes the design work as a whole. The output of one block becomes part of the input to the next, which means a change in an early block alters every block after it, and because the chain never breaks, the fingerprint depends on the whole message.
The key schedule spreads the effect further. N-Hash derives its round keys from the message itself, which means the scrambling changes with the data, and because the keys are data-dependent, the same block hashes differently in different messages.
The finalisation is what turns the state into a digest. After the last block, N-Hash runs the state through extra rounds with no new input, which means the digest depends on the whole message and nothing else, and because the final rounds are the same as the mixing rounds, the design needs no special finishing step.
The digest comes from the final state, read out as 128 bits. N-Hash outputs its wide state directly as the fingerprint, which means the result is a fixed size whatever the input, and that size is exactly what a file format or a signature scheme needs for its integrity field.

Comparing N-Hash with other early hashes
N-Hash is one of several hashes designed in the early 1990s, and each was built with a different emphasis. MD4 is the dedicated hash that became the standard of its day, HAVAL is the later hash with a variable digest, and N-Hash is the one built by borrowing a cipher, while each approach trades something for something else.
The table below sets out the main contrasts between the leading approaches.
| Aspect | N-Hash | MD4 | HAVAL |
|---|---|---|---|
| Built from | FEAL cipher rounds | Dedicated design | Dedicated design |
| Digest size | 128 bits | 128 bits | 128, 160, 192 or 256 bits |
| Block size | 128 bits | 512 bits | 1024 bits |
| Year | 1990 | 1990 | 1992 |
| Best for | Teaching hash history | Legacy checksums | Teaching variable digests |
The practical result is that N-Hash is the right choice for teaching hash history, MD4 suits legacy checksums, and HAVAL fits teaching variable digests instead.
Where N-Hash is used
Teaching uses it as the cipher-based example. Courses introduce N-Hash when they explain that a hash can be built from a cipher, because it is the clearest case of the idea in a real design, and a student who understands N-Hash understands why borrowing strength is tempting.
Research uses it as a case study in differential attacks. Cryptanalysts still cite N-Hash when they discuss how differential cryptanalysis broke early hashes, because it is the clearest example of the method working, and that lesson shapes how new hashes are judged today.
History uses it to tell the story of 1990. The year N-Hash and MD4 both appeared is one of the great dates in hash design, and N-Hash is remembered wherever that story is told, which means it survives as history as well as a working design.
Standards history uses it to mark the road to dedicated hashes. N-Hash was part of the experiment that showed cipher-based hashes were not enough, and it represents the approach the field moved away from, which means historians return to it whenever they ask how dedicated hashes won.
Cryptanalysis uses it as a training target. Students learning differential attacks still practise on N-Hash, because its structure is small enough to follow by hand, and that simplicity is the reason it still appears in exercise sets.
Strengths and limits
The greatest strength of N-Hash is its idea. Building a hash from a cipher was a clever shortcut, and that strength is real, measured in the designs it inspired and confirmed by the fact that cipher-based hashing is still studied today.
It is also a strength that the design is simple to explain. A cipher’s round function plus chaining is easy to describe, and that simplicity is worth more than cleverness in a field where a hash nobody can explain is a hash nobody trusts.
The limits are real, though, and the biggest is that it was broken. Differential attacks found collisions, which means N-Hash must never guard anything real, and a system that needs a trusted hash must use a modern standard instead.
N-Hash checklist
- Use N-Hash for study and history, never for new security.
- Remember it borrows the FEAL cipher’s round function.
- Note it produces a 128-bit digest from 128-bit blocks.
- Compare it with MD4 to see dedicated design at work.
- Study the differential attacks that broke it.
- Check the chaining, which links every block together.
- Keep real digests behind standard hashes, not N-Hash.
- Read the 1990 design paper to see how it was built.
- Choose SHA-3 for any system that needs a standard today.
Frequently asked questions
What is N-Hash in simple terms?
It is a 1990 hash from NTT in Japan that built a 128-bit fingerprint by running message blocks through the FEAL cipher’s round function.
Who designed N-Hash?
Researchers at NTT, the Japanese telephone company, who proposed it in 1990 as one of the first cipher-based hash designs.
How is N-Hash different from MD4?
Both appeared in 1990 with 128-bit digests, but N-Hash borrowed the FEAL cipher’s rounds while MD4 was designed from scratch as a hash.
Is N-Hash still secure?
No, differential cryptanalysis found collisions in the early 1990s, so it is only a subject for study and history.
Where is N-Hash used?
In teaching, in cryptanalysis research, in hash history, and in student exercises on differential attacks.
When should I use N-Hash?
When you study hash history, when you learn differential cryptanalysis, or when you want the first cipher-based hash design.
The bottom line
N-Hash explained in one line is this: the borrowed hash, a 1990 design that built a fingerprint from a cipher’s rounds and taught the field that borrowed strength is not enough.
It is proof that a good shortcut can still fail, and the reason it still matters is that every hash designed since has been judged partly by the lesson N-Hash taught.
This article is general information about how N-Hash works, not advice about choosing encryption for a particular device or system.







