hashjs-es
TypeScript icon, indicating that this package has built-in type declarations

1.0.0 • Public • Published

HashJs-ES

Last released npm version   Pipeline info   Total open issues   Total downloads by npm   License info  

This is a ported library version built to support es2015 module standard.

Can find original library here.

Usages

Install library using the next command:

npm i hashjs-es --save

Usage

The library supports the next hash algorithms:

Sha1, Sha224, Sha256, Sha384, Sha512, Ripemd160

Common usage

import { Hash } from 'hashjs-es';

Hash.sha1().update('abc').digest('hex');

Hash.sha224().update('abc').digest('hex');

Hash.sha224().update('abc').digest('hex');

Hash.sha384().update('abc').digest('hex');

Hash.sha512().update('abc').digest('hex');

Hash.ripemd160().update('abc').digest('hex');

Selective hash usage

import { sha1, sha224, sha256, sha384, sha512, ripemd160 } from 'hashjs-es';

sha1().update('abc').digest('hex');

sha224().update('abc').digest('hex');

sha224().update('abc').digest('hex');

sha384().update('abc').digest('hex');

sha512().update('abc').digest('hex');

ripemd160().update('abc').digest('hex');

Package Sidebar

Install

npm i hashjs-es

Weekly Downloads

72

Version

1.0.0

License

MIT

Unpacked Size

130 kB

Total Files

41

Last publish

Collaborators

  • lagoshny