1.0.3 • Published 9 months ago

easykeys v1.0.3

Weekly downloads
-
License
MIT
Repository
github
Last release
9 months ago

EasyKeys

Generate cryptographically secure keypairs

  • Works in both node and the browser
  • Zero dependencies

Usage

Node

npm i easykeys

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="https://cdn.jsdelivr.net/gh/easypeers/easykeys@master/index.js"></script>

API

new EasyKeys()

Create a new instance

easyKeys.pair()

Return a keypair

License

MIT

1.0.3

9 months ago

1.0.2

9 months ago

1.0.1

9 months ago

1.0.0

9 months ago