diffie-hellman (5.0.3)
Published 2026-02-24 13:55:31 +00:00 by atheaadmin
Installation
registry=npm install diffie-hellman@5.0.3"diffie-hellman": "5.0.3"About this package
diffie hellman 
pure js diffie-hellman, same api as node, most hard parts thanks to bn.js by @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');;
Dependencies
Dependencies
| ID | Version |
|---|---|
| bn.js | ^4.1.0 |
| miller-rabin | ^4.0.0 |
| randombytes | ^2.0.0 |
Development Dependencies
| ID | Version |
|---|---|
| tap-spec | ^1.0.1 |
| tape | ^3.0.1 |
Keywords
diffie
hellman
diffiehellman
dh