# sha256

**Kind:** Function

**Source:** [`src/utils/crypto.ts`](https://github.com/honojs/hono/blob/main/src/utils/crypto.ts#L15)

**Part of:** [Utils](subsystem-src-utils)

## Signature

```ts
async function sha256(data: Data): Promise<string | null>
```

## Parameters

| Name | Type |
|---|---|
| `data` | `Data` |

**Returns:** `Promise<string | null>`

## Used by

2 references from 2 files. Each is a place in this repository where the symbol is actually used — go read one rather than trusting an example.

### Imported by (2)

- `handler` — `src/middleware/cache/index.ts`:310
- `equal` — `src/utils/buffer.ts`:8
