node-get-random-values

v1.1.0
crypto.getRandomValues polyfill for node
node crypto getrandombytes random bytes webcrypto web-cryptography web-cryptography-api

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))
npm i node-get-random-values

Metadata

  • MIT
  • Whatever
  • Florian Klampfer
  • released 8/4/2020

Downloads

Maintainers