JSPM

  • ESM via JSPM
  • ES Module Entrypoint
  • Export Map
  • Keywords
  • License
  • Repository URL
  • TypeScript Types
  • README
  • Created
  • Published
  • Downloads 184
  • Score
    100M100P100Q70863F
  • License MIT

An universal JavaScript ripemd160 message digest function.

Package Exports

  • ripemd160-js
  • ripemd160-js/package.json

Readme

RIPEMD1600 logo

Ripemd160-js

NPM Package CI status License: MIT

A Universal JavaScript RIPEMD160 cryptographic hash function.

Features

  • Zero dependency
  • <7 KB gzip

Requirements

Supported runtime environments:

Installation

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

npm install ripemd160-js

For Deno

import ripemd160 from "https://deno.land/x/ripemd160js@v2.0.3/ripemd160.js";

Include in your deno.json:

{
  "imports": {
    "ripemd160-js/": "https://deno.land/x/ripemd160js@v2.0.3/"
  }
}

Examples

Import For ESM

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

Import For CJS

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

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”