# @polkadot/util-crypto

> A collection of useful crypto utilities for @polkadot

Latest version **14.0.3** (published 2026-03-23) · Apache-2.0 license · 0 weekly downloads

## Install

```sh
npm install @polkadot/util-crypto
pnpm add @polkadot/util-crypto
yarn add @polkadot/util-crypto
bun add @polkadot/util-crypto
```

## Health

**Score 55/100 (C)** — status: stable.

Positive: has types; esm support; no vulnerabilities.

Warnings: low downloads.

## Facts

| | |
|---|---|
| Version | 14.0.3 |
| Published | 2026-03-23 |
| First published | 2018-01-25 |
| Weekly downloads | 0 |
| License | Apache-2.0 |
| TypeScript types | bundled |
| Module format | ESM + CommonJS |
| Node | >=18 |
| Dependencies | 11 |
| Unpacked size | 1.3 MB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 261 |
| Author | Jaco Greeff |
| Maintainers | jacogr, polkadotjs, paritytech-ci |

## Links

- npm: https://www.npmjs.com/package/@polkadot/util-crypto
- Repository: https://github.com/polkadot-js/common
- Homepage: https://github.com/polkadot-js/common/tree/master/packages/util-crypto#readme
- Issues: https://github.com/polkadot-js/common/issues
- npm.io page: https://npm.io/package/@polkadot/util-crypto

## Dependencies (11)

- [tslib](https://npm.io/package/tslib.md) ^2.8.0
- [@scure/base](https://npm.io/package/@scure/base.md) ^1.1.7
- [@noble/curves](https://npm.io/package/@noble/curves.md) ^1.3.0
- [@noble/hashes](https://npm.io/package/@noble/hashes.md) ^1.3.3
- [@polkadot/util](https://npm.io/package/@polkadot/util.md) 14.0.3
- [@scure/sr25519](https://npm.io/package/@scure/sr25519.md) ^0.2.0
- [@polkadot/networks](https://npm.io/package/@polkadot/networks.md) 14.0.3
- [@polkadot/x-bigint](https://npm.io/package/@polkadot/x-bigint.md) 14.0.3
- [@polkadot/wasm-util](https://npm.io/package/@polkadot/wasm-util.md) ^7.5.3
- [@polkadot/wasm-crypto](https://npm.io/package/@polkadot/wasm-crypto.md) ^7.5.3
- [@polkadot/x-randomvalues](https://npm.io/package/@polkadot/x-randomvalues.md) 14.0.3

## Recent versions

- 14.0.3 (latest) — 2026-03-23
- 11.1.4-12 (beta) — 2023-04-13
- 14.0.2 — 2026-03-16
- 14.0.1 — 2025-12-09
- 13.5.9 — 2025-11-25
- 13.5.8 — 2025-11-11
- 13.5.7 — 2025-10-13
- 13.5.6 — 2025-08-26
- 13.5.5 — 2025-08-11
- 13.5.4 — 2025-07-28
- 13.5.3 — 2025-07-01
- 13.5.2 — 2025-06-17
- 13.5.1 — 2025-05-19
- 13.4.4 — 2025-04-14
- 13.4.3 — 2025-02-17
- … 1359 more at https://npm.io/package/@polkadot/util-crypto/versions

## README

# @polkadot/util-crypto

Various useful cyrpto utility functions that are used across all projects in the [@polkadot](https://polkadot.js.org) namespace. It provides utility functions with additional safety checks, allowing not only for consistent coding, but also reducing the general boilerplate.

## Usage

Installation -

```
yarn add @polkadot/util-crypto
```

Functions can be imported as follows:

```js
import { mnemonicGenerate } from '@polkadot/util-crypto';
```

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