summaryrefslogtreecommitdiffstats
path: root/docs/content/en/functions/crypto/SHA256.md
blob: 3019432d2a18dd87b79b784439b388b65817e263 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
---
title: crypto.SHA256
linkTitle: sha256
description: Hashes the given input and returns its SHA256 checksum.
categories: [functions]
keywords: []
menu:
  docs:
    parent: functions
function:
  aliases: [sha256]
  returnType: string
  signatures: [crypto.SHA256 INPUT]
relatedFunctions:
  - crypto.FNV32a
  - crypto.HMAC
  - crypto.MD5
  - crypto.SHA1
  - crypto.SHA256
aliases: [/functions/sha256]
---

```go-html-template
{{ sha256 "Hello world" }} → 64ec88ca00b268e5ba1a35678a1b5316d212f4f366b2477232534a8aeca37f3c
```