mirror of
https://codeup.aliyun.com/67c68d4e484ca2f0a13ac3c1/ydc/jsowell-charger-web.git
synced 2026-04-26 14:05:04 +08:00
4 lines
518 B
Markdown
4 lines
518 B
Markdown
|
|
diffie hellman [](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');`;
|