# hash_sha1

Computes a SHA-1 hash digest.

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

## Description

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

## Examples

### Compute a SHA-1 digest of a string

```tql
from {x: hash_sha1("foo")}
```

```tql
{x: "0beec7b5ea3f0fdbc95d0dd47f3c5bc275da8a33"}
```

## See Also

* [`hash_md5`](https://preview.docs.tenzir.com/375/375/reference/functions/hash_md5.md)
* [`hash_sha224`](https://preview.docs.tenzir.com/375/375/reference/functions/hash_sha224.md)
* [`hash_sha256`](https://preview.docs.tenzir.com/375/375/reference/functions/hash_sha256.md)
* [`hash_sha384`](https://preview.docs.tenzir.com/375/375/reference/functions/hash_sha384.md)
* [`hash_sha512`](https://preview.docs.tenzir.com/375/375/reference/functions/hash_sha512.md)
* [`hash_sha3_224`](https://preview.docs.tenzir.com/375/375/reference/functions/hash_sha3_224.md)
* [`hash_sha3_256`](https://preview.docs.tenzir.com/375/375/reference/functions/hash_sha3_256.md)
* [`hash_sha3_384`](https://preview.docs.tenzir.com/375/375/reference/functions/hash_sha3_384.md)
* [`hash_sha3_512`](https://preview.docs.tenzir.com/375/375/reference/functions/hash_sha3_512.md)
* [`hash_xxh3`](https://preview.docs.tenzir.com/375/375/reference/functions/hash_xxh3.md)
* [Manipulate strings](https://preview.docs.tenzir.com/375/375/guides/transformation/manipulate-strings.md)