> **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.createSha256

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

Creates an incremental SHA-256 hasher.

The installed Engine provider is captured when this function is called.

## Imports

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

## Examples

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

const hash = Hash.createSha256()
hash.update('0xdead')
hash.update('0xbeef')
hash.digest()
// @log: '0x5f78c33274e43fa9de5659265c1d917e25c03722dcb0b8d27db8d5feaa813953'
```

## Definition

```ts
function createSha256(): Hasher
```

## Return Type

An incremental SHA-256 hasher.

[`Hasher`](/docs/utilities/hash/types#hashhasher)
