crypto-hashing
Hash functions for bitcoin and other cryptocurrencies
Last updated 4 years ago by jprichardson .
MIT · Repository · Bugs · Original npm · Tarball · package.json
$ cnpm install crypto-hashing 
SYNC missed versions from official npm registry.

crypto-hashing

NPM Package Build Status Dependency status

js-standard-style

Available functions:

In addition to functions from crypto-browserify/createHash:

  • hash160 (sha256 and then ripemd160)
  • hash256 (sha256 twice)
Example
var cryptoHash = require('crypto-hashing')
var buffer = new Buffer('Hello there!')
console.log(cryptoHash('hash256', buffer).toString('hex'))
// e365181d0a42d3f57906af24c80d4636158455d140734c85e80609fa7d100300

License

MIT

Current Tags

  • 1.0.0                                ...           latest (4 years ago)

5 Versions

  • 1.0.0                                ...           4 years ago
  • 0.3.1                                ...           6 years ago
  • 0.3.0                                ...           7 years ago
  • 0.2.0                                ...           7 years ago
  • 0.1.0                                ...           7 years ago

Copyright 2014 - 2016 © taobao.org |