{"title":"hmac - Liquid Filter Reference","slug":"hmac-filter-reference","url":"https://support.storeconnect.com/articles/hmac-filter-reference","url_markdown":"https://support.storeconnect.com/articles/hmac-filter-reference.md","subtitle":null,"summary":"Generates an HMAC hash from a string using a secret key. Defaults to SHA1 but supports other algorithms for webhook signatures and data verification.","type":"Developer_Documentation","video_url":"","keywords":"liquid, filters, hmac, text, storeconnect","last_modified":"2026-08-21T07:12:35+0000","body_markdown":"## Description\n\nConverts a string into an encrypted hash using a hash message authentication code (HMAC).\n\n| Property | Value |\n|----------|-------|\n| **Return Type** | string |\n| **Category** | text |\n\n## Options\n\n| Option | Description |\n|--------|-------------|\n| `algorithm` | Specifies the algorithm to use for the HMAC. The default is `SHA1`. Options are `SHA1`, `SHA256`, `SHA384`, `SHA512`, `MD5`. |\n\n## Examples\n\n\n```liquid\n\n{{ \"Hello World\" | hmac: \"secret_key\" }}\n```\n\n\n**Output:** `3fccbb2a2682817133576387047f3557f22c8f0d`\n\n\n```liquid\n\n{{ nil | hmac: \"secret_key\" }}\n```\n\n\n**Output:** ``"}