# Hash

Utility functions for hashing (keccak256, sha256, etc).

## Examples

```ts twoslash
import { Hash } from 'ox'

const value = Hash.keccak256('0xdeadbeef')
// '0xd4fd4e189132273036449fc9e11198c739161b4c0116a9a2dccdfa1c492006f1'
```

## Functions

| Name                | Description                         |
| ------------------- | ----------------------------------- |
| [`Hash.hmac256`](/api/Hash/hmac256) | Calculates the [HMAC-SHA256](https://en.wikipedia.org/wiki/HMAC) of a [`Bytes.Bytes`](/api/Bytes/types#bytes) or [`Hex.Hex`](/api/Hex/types#hex) value. |
| [`Hash.keccak256`](/api/Hash/keccak256) | Calculates the [Keccak256](https://en.wikipedia.org/wiki/SHA-3) hash of a [`Bytes.Bytes`](/api/Bytes/types#bytes) or [`Hex.Hex`](/api/Hex/types#hex) value. |
| [`Hash.ripemd160`](/api/Hash/ripemd160) | Calculates the [Ripemd160](https://en.wikipedia.org/wiki/RIPEMD) hash of a [`Bytes.Bytes`](/api/Bytes/types#bytes) or [`Hex.Hex`](/api/Hex/types#hex) value. |
| [`Hash.sha256`](/api/Hash/sha256) | Calculates the [Sha256](https://en.wikipedia.org/wiki/SHA-256) hash of a [`Bytes.Bytes`](/api/Bytes/types#bytes) or [`Hex.Hex`](/api/Hex/types#hex) value. |
| [`Hash.validate`](/api/Hash/validate) | Checks if a string is a valid hash value. |
