node package manager

crypto-hashing

Hash functions for bitcoin and other cryptocurrencies

crypto-hashing

In addition to functions from crypto-browserify/createHash:

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

MIT