whirlpool-js
whirlpool 512 bit hash in javascript for electron and the browser
Demo: https://angeal185.github.io/whirlpool-js
Installation
npm
$ npm install whirlpool-js --save
bower
$ bower install whirlpool-js
git
$ git clone git@github.com:angeal185/whirlpool-js.git
electron
const wp = ;
browser
Digests
- hex: returns hash as a hex encoded string
- base64: returns hash as a base64 encoded string
- bytes: returns hash as a byte string
- Uint8: returns hash as a Uint8Array
- ArrayBuffer: returns hash as an arraybuffer
API
/** * sync * @param * @param **/wp /** * callback * @param * @param * @param **/wp /** * promise * @param * @param **/wp // democonst str = 'test'; //synclet sync = wp;console;//returns hex encoded hash //callbackwp; //promisewp