Package Exports
- ripemd160-js
- ripemd160-js/package.json
- ripemd160-js/ripemd160.json
Readme
Ripemd160-js
A Universal JavaScript RIPEMD160 cryptographic hash function.
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-jsFor Deno
import ripemd160 from "";For ESM
import ripemd160 from "ripemd160-js";For CJS
(async function () {
const { default: ripemd160 } = await import("ripemd160-js");
})();Examples
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.