sha1prng

0.1.3 • Public • Published

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'));

/sha1prng/

    Package Sidebar

    Install

    npm i sha1prng

    Weekly Downloads

    4

    Version

    0.1.3

    License

    MIT

    Unpacked Size

    2.59 kB

    Total Files

    4

    Last publish

    Collaborators

    • guozhenyi