---
title: crypto.SHA1
description: Hashes the given input and returns its SHA1 checksum encoded to a hexadecimal string.
categories: []
keywords: []
params:
  functions_and_methods:
    aliases: [sha1]
    returnType: string
    signatures: [crypto.SHA1 INPUT]
aliases: [/functions/sha,/functions/sha1]
---

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