Skip to content

Latest commit

 

History

History
24 lines (17 loc) · 430 Bytes

README.md

File metadata and controls

24 lines (17 loc) · 430 Bytes

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')