You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

27 lines
974 B

4 years ago
  1. # ripemd160
  2. [![NPM Package](https://img.shields.io/npm/v/ripemd160.svg?style=flat-square)](https://www.npmjs.org/package/ripemd160)
  3. [![Build Status](https://img.shields.io/travis/crypto-browserify/ripemd160.svg?branch=master&style=flat-square)](https://travis-ci.org/crypto-browserify/ripemd160)
  4. [![Dependency status](https://img.shields.io/david/crypto-browserify/ripemd160.svg?style=flat-square)](https://david-dm.org/crypto-browserify/ripemd160#info=dependencies)
  5. [![js-standard-style](https://cdn.rawgit.com/feross/standard/master/badge.svg)](https://github.com/feross/standard)
  6. Node style `ripemd160` on pure JavaScript.
  7. ## Example
  8. ```js
  9. var RIPEMD160 = require('ripemd160')
  10. console.log(new RIPEMD160().update('42').digest('hex'))
  11. // => 0df020ba32aa9b8b904471ff582ce6b579bf8bc8
  12. var ripemd160stream = new RIPEMD160()
  13. ripemd160stream.end('42')
  14. console.log(ripemd160stream.read().toString('hex'))
  15. // => 0df020ba32aa9b8b904471ff582ce6b579bf8bc8
  16. ```
  17. ## LICENSE
  18. MIT