🚀 Big News: Socket Acquires Coana to Bring Reachability Analysis to Every Appsec Team.Learn more
Socket
Book a DemoInstallSign in
Socket

hashjs-es

Package Overview
Dependencies
Maintainers
1
Versions
1
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

hashjs-es

Various hash functions built with es2015 modules

1.0.0
latest
Source
npm
Version published
Weekly downloads
49
-24.62%
Maintainers
1
Weekly downloads
 
Created
Source

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

Keywords

hash

FAQs

Package last updated on 19 Feb 2021

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts