github.com/rabbouni145/gg@v0.47.1/docs/content/en/functions/sha.md (about) 1 --- 2 title: sha 3 # linktitle: sha 4 description: Hashes the given input and returns either an SHA1 or SHA256 checksum. 5 godocref: 6 date: 2017-02-01 7 publishdate: 2017-02-01 8 lastmod: 2017-02-01 9 categories: [functions] 10 menu: 11 docs: 12 parent: "functions" 13 keywords: [sha,checksum] 14 signature: ["sha1 INPUT", "sha256 INPUT"] 15 workson: [] 16 hugoversion: 17 relatedfuncs: [] 18 deprecated: false 19 aliases: [] 20 --- 21 22 `sha1` hashes the given input and returns its SHA1 checksum. 23 24 ``` 25 {{ sha1 "Hello world, gophers!" }} 26 <!-- returns the string "c8b5b0e33d408246e30f53e32b8f7627a7a649d4" --> 27 ``` 28 29 `sha256` hashes the given input and returns its SHA256 checksum. 30 31 ``` 32 {{ sha256 "Hello world, gophers!" }} 33 <!-- returns the string "6ec43b78da9669f50e4e422575c54bf87536954ccd58280219c393f2ce352b46" --> 34 ```