JSPM

  • ESM via JSPM
  • ES Module Entrypoint
  • Export Map
  • Keywords
  • License
  • Repository URL
  • TypeScript Types
  • README
  • Created
  • Published
  • 0
  • Score
    100M100P100Q37420F
  • License MIT

Generate cryptographically secure keypairs

Package Exports

  • easykeys
  • easykeys/index.js

This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (easykeys) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.

Readme

EasyKey

Generate cryptographically secure keypairs

  • Works in both node and the browser
  • Zero dependencies

Usage

Node

npm i easykey

Test

Install Mocha

npm i mocha -g

Run test

npm test

The test generates 10,000 keypairs and passes if the average entropy is greater than 4.5 (6 is perfect, 0 is not sufficiently random for between 32 and 64 bit keys).

Browser

<script type="module" src="coming soon"></script>

API

new EasyKey()

Create a new instance

easyKey.pair()

Return a keypair

License

MIT