# Keystore.engine

Compiles the WASM implementation of the [`Keystore`](/api/Keystore) PBKDF2 primitive, 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. This provider deliberately stays synchronous and leaves AES, asynchronous PBKDF2, and scrypt on Ox's default implementation.

## Imports

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

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

## Examples

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

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

Keystore.pbkdf2({ password: 'testpassword' })
```

## Definition

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

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

## Return Type

The WASM implementation of synchronous PBKDF2-HMAC-SHA256.

`Promise<engine.ReturnType>`
