npm.io
1.1.0 • Published 8 years ago

multihasher

Licence
Apache-2.0
Version
1.1.0
Deps
2
Vulns
0
Weekly
0
Stars
5

hasher

Simple hasher using multihash and async functions.

let hasher = require('hasher')('sha256')
let hash = await hasher(Buffer.from('test')) // return hash as B58 string.
console.log(hash) // 'QmeYzshSoNHr2QUWqmkMAy6raRhcmzTuroy7johWJNn3fY'