diffie-hellman

pure js diffie-hellman

Usage no npm install needed!

<script type="module">
  import diffieHellman from 'https://cdn.skypack.dev/diffie-hellman';
</script>

README

diffie hellman Build Status

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');;