---
title: "RIPEMD-256"
description: "RIPEMD-128 with both lines kept apart for 32 bytes. Exactly as strong as RIPEMD-128 by design and it has HMAC"
canonical_url: "https://hashes.agntn.dev/algorithms/ripemd256"
---
# RIPEMD-256

> RIPEMD-128 with both lines kept apart for 32 bytes. Exactly as strong as RIPEMD-128 by design and it has HMAC

<algorithm-facts name="ripemd256">



</algorithm-facts>

[RIPEMD-128](https://hashes.agntn.dev/algorithms/ripemd128) with its two lines kept apart. Each line starts from its own values, they swap one word after every round, and both end up in the digest. Same trick as [RIPEMD-320](https://hashes.agntn.dev/algorithms/ripemd320) plays on RIPEMD-160.

```ts
create("ripemd256").hash("abc").digest;
// "afbd6e228b9d8cbbcef5ca2d03e6dba10ac0bc7dcbe4680e1e42d2e975459b65"
```

32 bytes, so 128-bit collision resistance? Nope. The authors built it for a longer result, not more security, so it's as strong as RIPEMD-128. The extra bytes are for formats that want them. It looks like [SHA-256](https://hashes.agntn.dev/algorithms/sha256) at a glance and has nothing of it inside.

That's why it's filed under legacy, right next to the hash it widens.


## Sitemap

See the full [sitemap](https://hashes.agntn.dev/sitemap.md) for all pages.
