Skip to content

guozhenyi/js-sha1prng

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

9 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Packages

No packages published