# crypto/hmac
Compute an HMAC (keyed hash-based message authentication code) as a hex string.
## Syntax
[crypto/hmac :algo $key $data]
## Parameters
- `:algo` — One of `:sha256`, `:sha512`
- `$key` — Secret key (bytes)
- `$data` — Data to authenticate
## Examples
[crypto/hmac :sha256 "secret-key" "message"]
## Returns
Lowercase hex digest string, or `%Err{ message "..." }` if unsupported.
## See Also
`crypto/sha256`, `crypto/sha512`, `crypto/hash`