> **Can't find what you're looking for?** Use `search_docs` on the docs MCP server at `https://v3.viem.sh/api/mcp` to find what you need.

# Hash.ripemd160

:::info
`Hash.ripemd160` is a re-export of ox's [`Hash.ripemd160`](https://oxlib.sh/api/Hash/ripemd160). Refer to the ox documentation for the full reference.
:::

Calculates the [Ripemd160](https://en.wikipedia.org/wiki/RIPEMD) hash of a [`Bytes.Bytes`](/docs/utilities/bytes/types#bytes) or [`Hex.Hex`](/docs/utilities/hex/types#hex) value.

Backed by `ripemd160` from [`@noble/hashes`](https://github.com/paulmillr/noble-hashes), an audited & minimal JS hashing library, unless another implementation is installed with [`Engine.set`](https://oxlib.sh/api/Engine/set).

## Imports

```ts
import { Hash } from 'viem/utils'
```

## Examples

```ts twoslash
// @noErrors
import { Hash } from 'viem/utils'

Hash.ripemd160('0xdeadbeef')
// '0x226821c2f5423e11fe9af68bd285c249db2e4b5a'
```

## Definition

```ts
function ripemd160<value, as>(
  value: value | Hex.Hex | Bytes.Bytes,
  options?: ripemd160.Options<as>,
): ripemd160.ReturnType<as>
```

## Parameters

### value

* **Type:** `value | Hex.Hex | Bytes.Bytes`

[`Bytes.Bytes`](/docs/utilities/bytes/types#bytes) or [`Hex.Hex`](/docs/utilities/hex/types#hex) value.

### options

* **Type:** `ripemd160.Options<as>`
* **Optional**

Options.

#### options.as

* **Type:** `"Bytes" | "Hex" | as`
* **Optional**

The return type.

## Return Type

Ripemd160 hash.

`ripemd160.ReturnType<as>`
