sha1
{% assign hash = "hello world" | sha1 %}
{% log hash %}2aae6c35c94fcfb415dbe95f408b9ce91ee846edSyntax
{{ value | sha1 }}Parameter
Description
Return Value
Examples
{% assign content_hash = email.body.text | sha1 %}
{% log "Content hash: " | append: content_hash %}{% capture cache_key_input %}{{ product.id }}-{{ product.updated_at }}{% endcapture %}
{% assign cache_key = cache_key_input | sha1 %}
{% log cache_key %}Notes
Last updated