Hash Lab

Cryptographic

RIPEMD-160

A 160-bit hash function developed by Dobbertin, Bosselaers, and Preneel in 1996 as part of the EU’s RIPE project, as an alternative to MD4 / MD5 / SHA-1. Two parallel computation lines make it noticeably harder to attack than SHA-1 in practice. RIPEMD-160 holds up cryptanalytically much better than its contemporaries but is too small for modern designs.

At a glance

Output160 bits (20 bytes, 40 hex chars)
Block size512 bits
ConstructionMerkle-Damgård with two parallel branches
Rounds5×16 per branch (160 ops total)
StandardISO/IEC 10118-3
Collision security~280 generic; no practical break known
Preimage security~2160
Length extensionYes
StatusHolds up cryptographically; output too small for new designs

The RIPEMD family

Where it is used

Why it has held up

The signature feature is two parallel processing lines that recombine at the end. Differential attacks need to find a high-probability differential characteristic simultaneously in both lines, which is far harder than attacking a single chain. As a result, while SHA-1 fell in 2017, no comparable practical collision is known for full RIPEMD-160 as of writing. The best published results cover reduced rounds.

So why not use it for new designs?

160 bits gives only 80-bit collision security (birthday bound). NIST and most modern guidance recommend at least 128-bit collision security for new designs, which means 256-bit output minimum. RIPEMD-160 is a good legacy citizen, but for new content addressing, MACs, or signatures pick SHA-256, SHA-512/256, SHA3-256, BLAKE2b, or BLAKE3.

Try it

The multi-algorithm hasher includes RIPEMD-160. The output is recognizably short (40 hex chars) compared to SHA-256 or BLAKE2b.

References

Visualize

RIPEMD-160 on your input

11 bytes · 0-bit digest

Hex digest

Bit grid (0 bits, teal = 1, slate = 0)

Byte pixel art (0 bytes, hue = byte value mod 360°)

Avalanche , flipping the lowest bit of the first input byte changed 0 of 0 output bits

Quick quiz

Test yourself on ripemd-160

10 multiple-choice questions. Pick an answer for each, then submit to see explanations.

  1. Q1.What is the output size of RIPEMD-160?

  2. Q2.Who designed RIPEMD-160?

  3. Q3.What's RIPEMD-160's distinctive structural feature?

  4. Q4.Where is RIPEMD-160 most famously used?

  5. Q5.Has full RIPEMD-160 been broken?

  6. Q6.Why isn't RIPEMD-160 recommended for new designs?

  7. Q7.Is RIPEMD-160 in any ISO standard?

  8. Q8.Which is NOT a member of the RIPEMD family?

  9. Q9.What is the block size of RIPEMD-160?

  10. Q10.Is HMAC-RIPEMD-160 commonly used in modern protocols?

0 of 10 answered