Skip to content

llHMAC

function ll.HMAC(Key: string, Message: string, Algorithm: string): string

Returns the base64-encoded hashed message authentication code (HMAC), of Message using PEM-formatted Key and digest Algorithm (md5, sha1, sha224, sha256, sha384, sha512).

Parameters
Key (string)
The PEM-formatted key for the hash digest.
Message (string)
The message to be hashed.
Algorithm (string)
The digest algorithm: md5, sha1, sha224, sha256, sha384, sha512.

Add example usage here showing SLua/Luau syntax with ll.HMAC().

Add additional notes, caveats, or tips specific to using this function in SLua/Luau.