0.1.3 • Published 2 years ago

sha1prng v0.1.3

Weekly downloads
-
License
MIT
Repository
github
Last release
2 years ago

js-sha1prng

A lib for compatible with sun.security.provider.SecureRandom.

Installation

npm:

$ npm install --save sha1prng

or yarn:

$ yarn add sha1prng

Usage

const hash = require('sha1prng');

const secretKey = 'xxxxxxxxxxxxxxxx';
const hashKey = hash.sha1prng(secretKey);

console.log('Buffer:', hashKey);
console.log('Hex:', hashKey.toString('hex'));
0.1.3

2 years ago

0.1.2

2 years ago

0.1.1

2 years ago

0.1.0

2 years ago