# keccak256

> A wrapper for the keccak library to compute 256 bit keccak hash in JavaScript

Latest version **1.0.6** (published 2021-12-10) · MIT license · 0 weekly downloads

## Install

```sh
npm install keccak256
pnpm add keccak256
yarn add keccak256
bun add keccak256
```

## Health

**Score 25/100 (F)** — status: abandoned.

Positive: has types; no vulnerabilities; high quality score.

Warnings: low downloads; no esm support.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 1.0.6 |
| Published | 2021-12-10 |
| First published | 2018-10-23 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | bundled |
| Module format | CommonJS |
| Dependencies | 3 |
| Unpacked size | 304.4 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 67 |
| Author | Miguel Mota |
| Maintainers | miguelmota |
| Keywords | crypto, hash, sha3, algorithm, keccak, keccak256 |

## Links

- npm: https://www.npmjs.com/package/keccak256
- Repository: https://github.com/miguelmota/keccak256
- Issues: https://github.com/miguelmota/keccak256/issues
- npm.io page: https://npm.io/package/keccak256

## Dependencies (3)

- [bn.js](https://npm.io/package/bn.js.md) ^5.2.0
- [buffer](https://npm.io/package/buffer.md) ^6.0.3
- [keccak](https://npm.io/package/keccak.md) ^3.0.2

## 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

- 1.0.6 (latest) — 2021-12-10
- 1.0.5 — 2021-12-10
- 1.0.4 — 2021-12-10
- 1.0.3 — 2021-07-02
- 1.0.2 — 2020-10-31
- 1.0.1 — 2020-10-19
- 1.0.0 — 2018-10-23
- 0.0.1 — 2018-10-23

## README

# keccak256

> A wrapper for the [`keccak`](https://www.npmjs.com/package/keccak) library to compute 256 bit keccak hash in JavaScript.

[![License](http://img.shields.io/badge/license-MIT-blue.svg)](https://raw.githubusercontent.com/miguelmota/keccak256/master/LICENSE.md)
[![Build Status](https://travis-ci.org/miguelmota/keccak256.svg?branch=master)](https://travis-ci.org/miguelmota/keccak256)

[![js-standard-style](https://cdn.rawgit.com/feross/standard/master/badge.svg)](https://github.com/feross/standard)

## Install

```bash
npm install keccak256
```

### CDN

Available on [jsDelivr](https://www.jsdelivr.com/) CDN:

```html
<script src="https://cdn.jsdelivr.net/npm/keccak256@latest/keccak256.js"></script>
```

## Usage

- **keccak256**(data) -> {Buffer}
  - {String | Buffer} data - data string or Buffer

  Returns a Buffer

## Getting Started

```js
const keccak256 = require('keccak256')

console.log(keccak256('hello').toString('hex')) // "1c8aff950685c2ed4bc3174f3472287b56d9517b9c948127319a09a7a36deac8"

console.log(keccak256(Buffer.from('hello')).toString('hex')) // "1c8aff950685c2ed4bc3174f3472287b56d9517b9c948127319a09a7a36deac8"
```


## Test

```bash
npm test
```

## License

MIT

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