Loading

SHA1HMAC

crypto

The SHA1HMAC function computes a Hash-based Message Authentication Code HMAC that uses a key in conjunction with a SHA-1 cryptographic hash function.

SHA1HMAC is available since version 1.2.0.

See also

Signatures

Examples

// Converts a string to authenticate into byte array 'message to be authenticated' 'UTF-8' ->BYTES // Secret key into byte array 'secret authentication key' 'UTF-8' ->BYTES // compute SHA1-HASHMAC SHA1HMAC // hex representation of the MAC (message authentication code) ->HEX