node-get-random-values

1.1.0 • Public • Published

node-get-random-values

crypto.getRandomValues polyfill for node.

Comes in two flavors, "polyfill" and " phonyfill". The "phonyfill" is a more efficient implementation that doesn't fully correspond to the WebCrypto specification. Specifically, it only implements the code path where the result of the function call is used, e.g.:

const useThis = crypto.getRandomValues(new Uint8Array(16))

Package Sidebar

Install

npm i node-get-random-values

Weekly Downloads

126

Version

1.1.0

License

MIT

Unpacked Size

9.4 kB

Total Files

8

Last publish

Collaborators

  • qwtel