Library hmac

To use this library in your code:

import crypto.hmac

Classes

HMAC keyed hashing for message authentication.

HMAC using Sha-224 as the underlying hash.

HMAC using Sha-256 as the underlying hash.

HMAC using Sha-384 as the underlying hash.

HMAC using Sha-512 as the underlying hash.

Functions

hmac-sha224 --key/any data/any -> ByteArray
Computes the HMAC using Sha-224 of the given data.
The data must be a string or byte array.
The key (secret) must be a string or byte array.

hmac-sha256 --key/any data/any -> ByteArray
Computes the HMAC using Sha-256 of the given data.
The data must be a string or byte array.
The key (secret) must be a string or byte array.

hmac-sha384 --key/any data/any -> ByteArray
Computes the HMAC using Sha-384 of the given data.
The data must be a string or byte array.
The key (secret) must be a string or byte array.

hmac-sha512 --key/any data/any -> ByteArray
Computes the HMAC using Sha-512 of the given data.
The data must be a string or byte array.
The key (secret) must be a string or byte array.