Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/qwtel/node-get-random-values

crypto.getRandomValues polyfill for node
https://github.com/qwtel/node-get-random-values

Last synced: 25 days ago
JSON representation

crypto.getRandomValues polyfill for node

Awesome Lists containing this project

README

        

# 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.:

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