hmac_sign
Generate an HMAC to verify data integrity and authenticity using a hex-encoded key and a hash algorithm (SHA-256 or SHA-512).
Instructions
Generate HMAC.
Args: key: Hex-encoded key. data: String to sign. algorithm: Hash algorithm - 'sha256' or 'sha512' (default sha256).
Returns: Hex-encoded HMAC.
Example: >>> hmac_sign("aabbcc", "message") 'c053c4f7...'
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| key | Yes | ||
| data | Yes | ||
| algorithm | No | sha256 |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |