Working with external APIs through Shopify Flow often means dealing with sensitive data that needs proper security measures. Until now, hashing API keys, customer information, or other confidential data required workarounds or external tools.
Flow now includes native hashing capabilities using the same Liquid filters that power Shopify themes. You can hash data right in your workflows without any additional setup or third-party services.
The available hashing functions include sha1, sha256, md5, hmac_sha1, and hmac_sha256. Just add the filter to any variable in your workflow - it's that straightforward. For HMAC functions, you'll need to include your secret key as a parameter.
Here's how it works in practice:
- Basic email hashing: {{ customer.defaultEmailAddress | sha1 }}
- Secure email hashing with HMAC: {{ customer.defaultEmailAddress | hmac_sha256: "your-secret-key" }}
This update eliminates the need to handle sensitive data hashing outside of your workflows, keeping everything secure and contained within Shopify's ecosystem.