A Universal JavaScript RIPEMD160 cryptographic hash function.
Features
- Zero dependency
- <7 KB gzip
Supported runtime environments:
-
Node.js versions
>=16.0.0
- Browsers matching the Browserslist query
> 0.5%, not OperaMini all, not dead
.
For Node.js, to install ripemd160-js
run:
npm install ripemd160-js
Import For ESM
import ripemd160 from "ripemd160-js/ripemd160.js";
Digest Array
ripemd160(Uint8Array.from([1, 2, 3])).then(console.log);
The logged output will be “79f901da2609f020adadbf2e5f68a16c8c3f7d57”