# Hash.createSha256

Creates an incremental SHA-256 hasher.

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

## Imports

:::code-group
```ts [Named]
import { Hash } from 'ox'
```

```ts [Entrypoint]
import * as Hash from 'ox/Hash'
```
:::

## Examples

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

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

## Definition

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

**Source:** [src/core/Hash.ts](https://github.com/wevm/ox/blob/main/src/core/Hash.ts#L177)

## Return Type

An incremental SHA-256 hasher.

[`Hasher`](/api/Hash/types#hashhasher)
