# iana-hashes

> Use the IANA registered hash names with node crypto

Latest version **1.1.0** (published 2019-01-03) · MIT license · 0 weekly downloads

## Install

```sh
npm install iana-hashes
pnpm add iana-hashes
yarn add iana-hashes
bun add iana-hashes
```

## 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.1.0 |
| Published | 2019-01-03 |
| First published | 2014-06-14 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | bundled |
| Module format | CommonJS |
| Dependencies | 3 |
| Unpacked size | 6.3 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 0 |
| Author | Lance Stout |
| Maintainers | andyet-ops, lancestout |
| Keywords | IANA, hash |

## Links

- npm: https://www.npmjs.com/package/iana-hashes
- Repository: https://github.com/legastero/iana-hashes
- Issues: https://github.com/legastero/iana-hashes/issues
- npm.io page: https://npm.io/package/iana-hashes

## Dependencies (3)

- [create-hash](https://npm.io/package/create-hash.md) ^1.1.0
- [create-hmac](https://npm.io/package/create-hmac.md) ^1.1.3
- [randombytes](https://npm.io/package/randombytes.md) ^2.0.6

## 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.1.0 (latest) — 2019-01-03
- 1.0.3 — 2017-01-31
- 1.0.2 — 2015-03-18
- 1.0.1 — 2015-02-12
- 1.0.0 — 2014-06-14

## README

# IANA-Hashes
**Use the IANA registered hash names with node crypto's hash functions**

[![Build Status](https://travis-ci.org/legastero/iana-hashes.png)](https://travis-ci.org/legastero/iana-hashes)
[![Dependency Status](https://david-dm.org/legastero/iana-hashes.png)](https://david-dm.org/legastero/iana-hashes)
[![devDependency Status](https://david-dm.org/legastero/iana-hashes/dev-status.png)](https://david-dm.org/legastero/iana-hashes#info=devDependencies)

[![Browser Support](https://ci.testling.com/legastero/iana-hashes.png)](https://ci.testling.com/legastero/iana-hashes)

## What is this?

The `iana-hashes` module is a very thin wrapper for the node `crypto` module's hash functions, allowing you to use the hash names registered with IANA, which are the names typically used in Internet standards.

## Installing

```sh
$ npm install iana-hashes
```

## Building bundled/minified version (for AMD, etc)

```sh
$ make
```

The bundled and minified files will be in the generated `build` directory.

## IANA Registry

[View the "Hash Function Textual Names" registry at IANA](http://www.iana.org/assignments/hash-function-text-names/hash-function-text-names.xhtml)

`crypto` | IANA
-------- | --------
md2      | md2
md5      | md5
sha1     | sha-1
sha224   | sha-224
sha256   | sha-256
sha384   | sha-384
sha512   | sha-512

## Usage

```javascript
var hashes = require('iana-hashes');

hashes.createHash('sha-1').update('test-sha1').digest('hex');
hashes.createHmac('sha-1', 'key').update('test-sha1-hmac').digest('hex');
```

## License

MIT

## Created By

If you like this, follow [@lancestout](http://twitter.com/lancestout) on twitter.

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