browser-keygen

A browser version of crypto.generateKeyPair using the WebCryptoAPI

Usage no npm install needed!

<script type="module">
  import browserKeygen from 'https://cdn.skypack.dev/browser-keygen';
</script>

README

browser-keygen

A browser version of crypto.generateKeyPair using the WebCryptoAPI

Notes

Only "PEM" format is currently supported. Private key encryption is unsupported. Only RSA and EC algorithms are supported.

Only these curves are supported:

  • secp256k1
  • secp384r1
  • secp521r1