# hash_sha1

> Documentation index: http://docs.tenzir.com/llms.txt

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`](http://docs.tenzir.com/reference/functions/hash_md5.md)
* [`hash_sha224`](http://docs.tenzir.com/reference/functions/hash_sha224.md)
* [`hash_sha256`](http://docs.tenzir.com/reference/functions/hash_sha256.md)
* [`hash_sha384`](http://docs.tenzir.com/reference/functions/hash_sha384.md)
* [`hash_sha512`](http://docs.tenzir.com/reference/functions/hash_sha512.md)
* [`hash_sha3_224`](http://docs.tenzir.com/reference/functions/hash_sha3_224.md)
* [`hash_sha3_256`](http://docs.tenzir.com/reference/functions/hash_sha3_256.md)
* [`hash_sha3_384`](http://docs.tenzir.com/reference/functions/hash_sha3_384.md)
* [`hash_sha3_512`](http://docs.tenzir.com/reference/functions/hash_sha3_512.md)
* [`hash_xxh3`](http://docs.tenzir.com/reference/functions/hash_xxh3.md)
* [Manipulate strings](http://docs.tenzir.com/guides/transformation/manipulate-strings.md)