@rvagg/ripemd160
TypeScript icon, indicating that this package has built-in type declarations

2.2.4 • Public • Published

@rvagg/ripemd160

Browser-safe ripemd160 for JavaScript.

This project is a fork of https://github.com/crypto-browserify/ripemd160 (and its parent, https://github.com/crypto-browserify/hash-base) but it:

  • Adds TypeScript types exports
  • Operates natively on Uint8Arrays
  • Has no dependencies, even in the browser (i.e. no Buffer)
  • Does not handle streaming operations (i.e. just use update() and digest())

Example

var RIPEMD160 = require('ripemd160')

console.log(new RIPEMD160().update('42').digest('hex'))
// => 0df020ba32aa9b8b904471ff582ce6b579bf8bc8

License & Copyright

MIT

Copyright (c) 2016 crypto-browserify Copyright (c) 2022 Rod Vagg

Package Sidebar

Install

npm i @rvagg/ripemd160

Weekly Downloads

392

Version

2.2.4

License

MIT

Unpacked Size

25.4 kB

Total Files

14

Last publish

Collaborators

  • rvagg