sha1
string | sha1: string
returns string
Converts a string into an SHA-1 hash.
{%- assign secret_potion = 'Polyjuice' | sha1 -%}
My secret potion: {{ secret_potion }}
{%- assign secret_potion = 'Polyjuice' | sha1 -%}
My secret potion: {{ secret_potion }}
Output
My secret potion: bd0ca3935467e5238d7662ada4df899f09b70d5a
Was this page helpful?