# Hash.engine

Compiles the WASM implementation of the [`Hash`](/api/Hash) primitives, without installing it.

Most callers want [`Engine.install`](/wasm/crypto/Engine/install) instead, which compiles every implementation this entrypoint provides and installs them in one call. Reach for this to take the `Hash` slot on its own, or to hold the implementation without touching the installed engine.

\:::note Performance varies by primitive, input size, runtime, and processor. Run `pnpm bench:engines` to compare Ox's default, Node, WASM, and Alloy implementations on your target machine. :::

## Imports

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

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

## Examples

```ts twoslash
// @noErrors
import { Engine } from 'ox'
import { Hash } from 'ox/wasm'

await Engine.install({ Hash: Hash.engine() })

Hash.keccak256('0xdeadbeef')
```

## Definition

```ts
function engine(): Promise<engine.ReturnType>
```

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

## Return Type

The WASM implementation of the `Hash` slot.

`Promise<engine.ReturnType>`
