New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
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
  • Socket score

Version published
Maintainers
1
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

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

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc