# expo-standard-web-crypto

> A partial implementation of the W3C Crypto API for Expo

Latest version **58.0.5** (published 2026-10-16) · MIT license · 0 weekly downloads

## Install

```sh
npm install expo-standard-web-crypto
pnpm add expo-standard-web-crypto
yarn add expo-standard-web-crypto
bun add expo-standard-web-crypto
```

## Health

**Score 70/100 (B)** — status: active.

Positive: has types; no vulnerabilities; has provenance; recently updated; high maintenance score; high quality score.

Warnings: low downloads; no esm support.

## Facts

| | |
|---|---|
| Version | 58.0.5 |
| Published | 2026-10-16 |
| First published | 2020-10-08 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | bundled |
| Module format | CommonJS |
| Dependencies | 0 |
| Unpacked size | 12.2 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| Provenance | attested (GitHub Actions) |
| Author | 650 Industries, Inc. |
| Maintainers | ide, brentvatne, expoadmin, exponent, bycedric, kudochien, alanhughes, tsapeta, expo-bot, philpl, ccheever, szdziedzic, wschurman |
| Keywords | crypto, expo |

## Links

- npm: https://www.npmjs.com/package/expo-standard-web-crypto
- Repository: https://github.com/expo/expo
- Homepage: https://github.com/expo/expo/blob/main/packages/expo-standard-web-crypto
- npm.io page: https://npm.io/package/expo-standard-web-crypto

## Alternatives

- [@gemini-wallet/core](https://npm.io/package/@gemini-wallet/core.md) — 515.6K weekly downloads
- [utility](https://npm.io/package/utility.md) — 416.6K weekly downloads
- [@primno/dpapi](https://npm.io/package/@primno/dpapi.md) — 7.2K weekly downloads
- [pi-readseek](https://npm.io/package/pi-readseek.md) — 3.7K weekly downloads
- [@emilia-protocol/verify](https://npm.io/package/@emilia-protocol/verify.md) — 1.1K weekly downloads

## Recent versions

- 58.0.5 (latest) — 2026-10-16
- 57.0.4 (sdk-57) — 2026-10-14
- 58.0.4 (next) — 2026-10-09
- 56.0.4 (sdk-56) — 2026-09-17
- 58.0.0-canary-20260909-ea7a89a (canary) — 2026-09-09
- 55.0.12 (sdk-55) — 2026-07-15
- 56.0.4-canary-20260701-9100865 (canary-sdk-56) — 2026-07-01
- 55.0.6-canary-20260429-a5e59cf (canary-sdk-55) — 2026-04-29
- 1.8.1 (sdk-51) — 2024-04-23
- 1.7.0 (sdk-50) — 2023-08-02
- 58.0.3 — 2026-10-05
- 58.0.2 — 2026-10-01
- 58.0.1 — 2026-09-29
- 57.0.3 — 2026-09-15
- 58.0.0 — 2026-09-10
- … 208 more at https://npm.io/package/expo-standard-web-crypto/versions

## README

# expo-standard-crypto

A partial implementation of the W3C Crypto API for Expo

# API documentation

This package provides a partial polyfill of the W3C Crypto API for Expo. Namely, `Crypto#getRandomValues()` is implemented. See the [W3C Crypto specification](https://www.w3.org/TR/WebCryptoAPI/) for the API documentation.

# Installation in Expo projects

First follow the instructions for installing [`expo-crypto`](https://github.com/expo/expo/blob/main/packages/expo-crypto/README.md), which is required by this package. Then install this package.

### Add the package to your npm dependencies

```
npm install expo-standard-web-crypto
```

### Using the polyfill

There are two ways to use this package: you can import a `Crypto` instance or you can globally define `crypto`. Some code may expect the latter.

Importing a `Crypto` instance:

```js
import crypto from 'expo-standard-web-crypto';
```

Globally defining `crypto`:

```js
import { polyfillWebCrypto } from 'expo-standard-web-crypto';

polyfillWebCrypto();
// crypto is now globally defined
```

In either case, if your runtime environment already defines `crypto` globally, this package uses that instance instead of providing its own.

# Contributing

Contributions are very welcome! Please refer to guidelines described in the [contributing guide](https://github.com/expo/expo#contributing).

---
_Source: https://npm.io/package/expo-standard-web-crypto · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
