Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

ripemd160-js

Package Overview
Dependencies
Maintainers
1
Versions
13
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

ripemd160-js

An universal JavaScript ripemd160 message digest function.

  • 2.0.2
  • latest
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
20
decreased by-20%
Maintainers
1
Weekly downloads
 
Created
Source

RIPEMD1600 logo

Ripemd160-js

NPM Package CI status License: MIT

A Universal JavaScript RIPEMD160 cryptographic hash function.

Features

  • Zero dependency
  • ~7 KB

Requirements

Supported runtime environments:

  • Node.js versions >=16.0.0
  • Deno version >=1.30
  • Browsers matching the Browserslist query > 0.5%, not OperaMini all, not dead.

Installation

For Node.js, to install ripemd160-js run:

npm install ripemd160-js

For Deno

import ripemd160 from "https://deno.land/x/ripemd160js/ripemd160.mjs";

Examples

Import For ESM

import ripemd160 from "ripemd160-js/ripemd160.mjs";

Import For CJS

(async function () {
  const { default: ripemd160 } = await import("ripemd160-js/ripemd160.mjs");
})();

Digest text

ripemd160("hello").then(console.log);

The logged output will be “108f07b8382412612c048d07d13f814118445acd”.

Digest Array

ripemd160(Uint8Array.from([1, 2, 3])).then(console.log);

The logged output will be “79f901da2609f020adadbf2e5f68a16c8c3f7d57” -->

Exports

ripemd160 exports two files.

Keywords

FAQs

Package last updated on 22 Feb 2023

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