# diffie-hellman

> pure js diffie-hellman

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

## Install

```sh
npm install diffie-hellman
pnpm add diffie-hellman
yarn add diffie-hellman
bun add diffie-hellman
```

## 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 | 5.0.3 |
| Published | 2018-04-11 |
| First published | 2014-11-02 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | separate (@types/diffie-hellman) |
| Module format | CommonJS |
| Dependencies | 3 |
| Unpacked size | 16.9 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 95 |
| Author | Calvin Metcalf |
| Maintainers | cwmma, dcousens, dominictarr, indutny, jprichardson |
| Keywords | diffie, hellman, diffiehellman, dh |

## Links

- npm: https://www.npmjs.com/package/diffie-hellman
- Repository: https://github.com/crypto-browserify/diffie-hellman
- Issues: https://github.com/crypto-browserify/diffie-hellman/issues
- npm.io page: https://npm.io/package/diffie-hellman

## Dependencies (3)

- [bn.js](https://npm.io/package/bn.js.md) ^4.1.0
- [randombytes](https://npm.io/package/randombytes.md) ^2.0.0
- [miller-rabin](https://npm.io/package/miller-rabin.md) ^4.0.0

## Recent versions

- 5.0.3 (latest) — 2018-04-11
- 5.0.2 — 2016-01-26
- 5.0.1 — 2016-01-12
- 5.0.0 — 2015-10-29
- 4.0.0 — 2015-10-27
- 3.0.2 — 2015-05-21
- 3.0.1 — 2015-01-27
- 3.0.0 — 2015-01-21
- 2.2.3 — 2015-01-06
- 2.2.2 — 2015-01-03
- 2.2.1 — 2014-12-03
- 2.2.0 — 2014-11-16
- 2.1.0 — 2014-11-16
- 2.0.0 — 2014-11-16
- 1.1.2 — 2014-11-07
- … 6 more at https://npm.io/package/diffie-hellman/versions

## README

diffie hellman [![Build Status](https://travis-ci.org/crypto-browserify/diffie-hellman.svg)](https://travis-ci.org/crypto-browserify/diffie-hellman)
====

pure js diffie-hellman, same api as node, most hard parts thanks to [bn.js](https://www.npmjs.org/package/bn.js) by [@indutny](https://github.com/indutny).  In node just returns an object with `crypto.createDiffieHellman` and `crypto.getDiffieHellman` in the browser returns a shim. To require the pure JavaScript one in node `require('diffie-hellman/browser');`;

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