Skip to content

hash_sha1

Computes a SHA-1 hash digest.

hash_sha1(x:any, [seed=string]) -> string

The hash_sha1 function calculates a SHA-1 hash digest for the given value x.

from {x: hash_sha1("foo")}
{x: "0beec7b5ea3f0fdbc95d0dd47f3c5bc275da8a33"}

hash_md5, hash_sha224, hash_sha256, hash_sha384, hash_sha512, hash_xxh3