npm.io
0.0.4 • Published 12 years ago

keccak-hash

Licence
—
Version
0.0.4
Deps
1
Vulns
0
Weekly
0
Install scriptsThis package runs scripts during installation (preinstall/install/postinstall)

node-keccak-hash

keccak hashing function for node.js. Useful for various cryptocurrencies.

Usage

Install

~

Hash your data

var keccak = require('keccak-hash');

var data = new Buffer("hash me good bro");
var hashed = keccak.digest(data); //returns a 32 byte buffer

console.log(hashed);
//<SlowBuffer 0b de 16 ef 2d 92 e4 35 65 c6 6c d8 92 d9 66 b4 3d 65 ..... >

Credits

  • Designers of Keccak hashing algorithm
  • Prydie for the python module this is based off of

Keywords