--- title: sha # linktitle: sha description: Hashes the given input and returns either an SHA1 or SHA256 checksum. godocref: date: 2017-02-01 publishdate: 2017-02-01 lastmod: 2017-02-01 categories: [functions] menu: docs: parent: "functions" #tags: [sha,checksum] signature: ["sha1 INPUT", "sha256 INPUT"] workson: [] hugoversion: relatedfuncs: [] deprecated: false aliases: [] --- `sha1` hashes the given input and returns its SHA1 checksum. ```html {{ sha1 "Hello world, gophers!" }} ``` `sha256` hashes the given input and returns its SHA256 checksum. ```html {{ sha256 "Hello world, gophers!" }} ```