Loading

SHA256HMAC


crypto
Since v1.2.0
Available on all platforms
See also

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

Signature

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