Module

Node.Crypto.Hmac

#Hmac

data Hmac

https://nodejs.org/api/crypto.html#crypto_class_hmac

Usage:

buf <- Buffer.fromString "dummy" UTF8
key <- Buffer.fromString "key" UTF8
Hmac.createHmac "sha512" key >>= Hmac.update buf >>= Hmac.digest >>= Buffer.toString Hex

#createHmac

#update

#digest

Modules