Skip to main content

Arguments

string
required
Raw Lua string bytes used as the HMAC key. The key is not Base64-decoded.
string
required
Lua string bytes passed into the HMAC calculation.
"sha256" | "sha1" | "sha224" | "sha384" | "sha512" | "md5"
Case-sensitive HMAC algorithm name. Defaults to sha256.

Returns

string
Base64-encoded HMAC output with no line breaks.

Example

Compute a Base64 HMAC output from a raw Lua string key and data.