Parameters
Returns
string - The resulting HMAC signature as a hex string.
Documentation Index
Fetch the complete documentation index at: /llms.txt
Use this file to discover all available pages before exploring further.
crypt.hmac(data: string, key: string, algorithm: string): string
| Parameter | Type | Description |
|---|---|---|
data | string | The data message payload to sign. |
key | string | The secret key. |
algorithm | string | The hashing algorithm to use (e.g. 'sha256'). |
string - The resulting HMAC signature as a hex string.
local signature = crypt.hmac("payload", "secret_key", "sha256")
print("Signature: ", signature)
local hmacVal = crypt.hmac("my-data", "key", "md5")