summaryrefslogtreecommitdiffstats
path: root/docs/content/en/functions/crypto/SHA1.md
blob: 204ff038432c73728e9f23388fee36a03d827c3d (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
---
title: crypto.SHA1
description: Hashes the given input and returns its SHA1 checksum encoded to a hexadecimal string.
categories: []
keywords: []
action:
  aliases: [sha1]
  related:
    - functions/crypto/FNV32a
    - functions/crypto/HMAC
    - functions/crypto/MD5
    - functions/crypto/SHA256
  returnType: string
  signatures: [crypto.SHA1 INPUT]
aliases: [/functions/sha,/functions/sha1]
---

```go-html-template
{{ sha1 "Hello world" }} → 7b502c3a1f48c8609ae212cdfb639dee39673f5e
```