Loading

SHA256HMAC

crypto

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

SHA256HMAC 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 SHA256-HASHMAC SHA256HMAC // hex representation of the MAC (message authentication code) ->HEX