# @multiformats/sha3

> Multiformats hash functions for SHA3

Latest version **4.0.0** (published 2026-05-12) · Apache-2.0 OR MIT license · 0 weekly downloads

## Install

```sh
npm install @multiformats/sha3
pnpm add @multiformats/sha3
yarn add @multiformats/sha3
bun add @multiformats/sha3
```

## Health

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

Positive: has types; esm support; no vulnerabilities; has provenance; high maintenance score; high quality score.

Warnings: low downloads.

## Facts

| | |
|---|---|
| Version | 4.0.0 |
| Published | 2026-05-12 |
| First published | 2020-06-10 |
| Weekly downloads | 0 |
| License | Apache-2.0 OR MIT |
| TypeScript types | bundled |
| Module format | ESM |
| Dependencies | 2 |
| Unpacked size | 83.8 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| Provenance | attested (GitHub Actions) |
| GitHub stars | 5 |
| Author | Mikeal Rogers |
| Maintainers | daviddias, vmx, mikeal, hugomrdias, alanshaw, achingbrain, vascosantos, rvagg, lidel, npm-service-account-multiformats |
| Keywords | blake2, hash, ipfs, ipld, multiformats, multihash |

## Links

- npm: https://www.npmjs.com/package/@multiformats/sha3
- Repository: https://github.com/multiformats/js-sha3
- Homepage: https://github.com/multiformats/js-sha3#readme
- Issues: https://github.com/multiformats/js-sha3/issues
- npm.io page: https://npm.io/package/@multiformats/sha3

## Dependencies (2)

- [js-sha3](https://npm.io/package/js-sha3.md) ^0.9.1
- [multiformats](https://npm.io/package/multiformats.md) ^14.0.0

## Alternatives

- [mobx-react](https://npm.io/package/mobx-react.md) — 2.8M weekly downloads
- [rc-tree](https://npm.io/package/rc-tree.md) — 2.6M weekly downloads
- [@react-oauth/google](https://npm.io/package/@react-oauth/google.md) — 1.3M weekly downloads
- [@wagmi/connectors](https://npm.io/package/@wagmi/connectors.md) — 877.0K weekly downloads
- [vee-validate](https://npm.io/package/vee-validate.md) — 836.4K weekly downloads

## Recent versions

- 4.0.0 (latest) — 2026-05-12
- 3.0.3 — 2026-05-12
- 3.0.2 — 2024-01-02
- 3.0.1 — 2023-10-03
- 3.0.0 — 2023-08-31
- 2.0.17 — 2023-05-16
- 2.0.16 — 2023-03-17
- 2.0.15 — 2023-01-06
- 2.0.14 — 2022-12-08
- 2.0.13 — 2022-08-26
- 2.0.12 — 2022-05-25
- 2.0.11 — 2022-05-11
- 2.0.10 — 2022-05-02
- 2.0.9 — 2022-05-02
- 2.0.8 — 2022-03-01
- … 24 more at https://npm.io/package/@multiformats/sha3/versions

## README

# @multiformats/sha3

[![multiformats.io](https://img.shields.io/badge/project-IPFS-blue.svg?style=flat-square)](http://multiformats.io)
[![codecov](https://img.shields.io/codecov/c/github/multiformats/js-sha3.svg?style=flat-square)](https://codecov.io/gh/multiformats/js-sha3)
[![CI](https://img.shields.io/github/actions/workflow/status/multiformats/js-sha3/js-test-and-release.yml?branch=master\&style=flat-square)](https://github.com/multiformats/js-sha3/actions/workflows/js-test-and-release.yml?query=branch%3Amaster)

> Multiformats hash functions for SHA3

# About

<!--

!IMPORTANT!

Everything in this README between "# About" and "# Install" is automatically
generated and will be overwritten the next time the doc generator is run.

To make changes to this section, please update the @packageDocumentation section
of src/index.js or src/index.ts

To experiment with formatting, please run "npm run docs" from the root of this
repo and examine the changes made.

-->

The `@multiformats/sha3` package exports `sha3*`, `shake*` and `keccak*` `MultihashHasher`s. The Multicodecs [table](https://github.com/multiformats/multicodec/blob/master/table.csv) defines these multihashes.

The following `MultihashHasher`s are exported:

- `sha3224` - SHA3-224
- `sha3256` - SHA3-256
- `sha3384` - SHA3-384
- `sha3512` - SHA3-512
- `shake128` - SHAKE-128 (256 output bits)
- `shake256` - SHAKE-256 (512 output bits)
- `keccak224` - KECCAK-224
- `keccak256` - KECCAK-256
- `keccak384` - KECCAK-384
- `keccak512` - KECCAK-512

e.g. he `sha3-384`, multicodec code `0x15`, may be imported as:

```js
import { sha3384 } from '@multiformats/sha3'
```

# Install

```console
$ npm i @multiformats/sha3
```

## Browser `<script>` tag

Loading this module through a script tag will make its exports available as `MultiformatsSha3` in the global namespace.

```html
<script src="https://unpkg.com/@multiformats/sha3/dist/index.min.js"></script>
```

# API Docs

- <https://multiformats.github.io/js-sha3>

# License

Licensed under either of

- Apache 2.0, ([LICENSE-APACHE](https://github.com/multiformats/js-sha3/LICENSE-APACHE) / <http://www.apache.org/licenses/LICENSE-2.0>)
- MIT ([LICENSE-MIT](https://github.com/multiformats/js-sha3/LICENSE-MIT) / <http://opensource.org/licenses/MIT>)

# Contribution

Unless you explicitly state otherwise, any contribution intentionally submitted for inclusion in the work by you, as defined in the Apache-2.0 license, shall be dual licensed as above, without any additional terms or conditions.

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