# create-hmac

> node style hmacs in the browser

Latest version **1.1.7** (published 2018-04-11) · MIT license · 0 weekly downloads

## Install

```sh
npm install create-hmac
pnpm add create-hmac
yarn add create-hmac
bun add create-hmac
```

## Health

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

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

Warnings: low downloads; no esm support.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 1.1.7 |
| Published | 2018-04-11 |
| First published | 2015-01-14 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | separate (@types/create-hmac) |
| Module format | CommonJS |
| Dependencies | 6 |
| Unpacked size | 5.7 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 60 |
| Maintainers | cwmma, dcousens, dominictarr, indutny, jprichardson |
| Keywords | crypto, hmac |

## Links

- npm: https://www.npmjs.com/package/create-hmac
- Repository: https://github.com/crypto-browserify/createHmac
- Issues: https://github.com/crypto-browserify/createHmac/issues
- npm.io page: https://npm.io/package/create-hmac

## Dependencies (6)

- [sha.js](https://npm.io/package/sha.js.md) ^2.4.8
- [inherits](https://npm.io/package/inherits.md) ^2.0.1
- [ripemd160](https://npm.io/package/ripemd160.md) ^2.0.0
- [cipher-base](https://npm.io/package/cipher-base.md) ^1.0.3
- [create-hash](https://npm.io/package/create-hash.md) ^1.1.0
- [safe-buffer](https://npm.io/package/safe-buffer.md) ^5.0.1

## 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.7 (latest) — 2018-04-11
- 1.1.6 — 2017-05-11
- 1.1.5 — 2017-05-11
- 1.1.4 — 2015-09-27
- 1.1.3 — 2015-01-30
- 1.1.2 — 2015-01-28
- 1.1.1 — 2015-01-27
- 1.1.0 — 2015-01-16
- 1.0.2 — 2015-01-14
- 1.0.1 — 2015-01-14
- 1.0.0 — 2015-01-14

## README

# create-hmac

[![NPM Package](https://img.shields.io/npm/v/create-hmac.svg?style=flat-square)](https://www.npmjs.org/package/create-hmac)
[![Build Status](https://img.shields.io/travis/crypto-browserify/createHmac.svg?branch=master&style=flat-square)](https://travis-ci.org/crypto-browserify/createHmac)
[![Dependency status](https://img.shields.io/david/crypto-browserify/createHmac.svg?style=flat-square)](https://david-dm.org/crypto-browserify/createHmac#info=dependencies)

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

Node style HMACs for use in the browser, with native HMAC functions in node. API is the same as HMACs in node:

```js
var createHmac = require('create-hmac')
var hmac = createHmac('sha224', Buffer.from('secret key'))
hmac.update('synchronous write') //optional encoding parameter
hmac.digest() // synchronously get result with optional encoding parameter

hmac.write('write to it as a stream')
hmac.end() //remember it's a stream
hmac.read() //only if you ended it as a stream though
```

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