whirlpool-hash
v1.1.6
Published
Calculates [WHIRLPOOL (WHIRLPOOL-0, WHIRLPOOL-T)] hash
Downloads
46
Maintainers
Readme
Whirlpool hash for JavaScript/TypeScript
Calculates WHIRLPOOL (WHIRLPOOL-0, WHIRLPOOL-T) hash
LICENSE MIT
Examples
Install:
npm i whirlpool-hash
Using on JavaScript(ES6)/TypeScript:
import {Whirlpool,encoders} from 'whirlpool-hash'
let whirlpool = new Whirlpool()
let hash=whirlpool.getHash("message")
encoders.toBase64(hash)
encoders.fromBase64('bWVzc2FnZQ==')
encoders.toHex('message')