--- title: sha description: Hashes the given input and returns either an SHA1 or SHA256 checksum. categories: [functions] menu: docs: parent: functions keywords: [sha,checksum] signature: ["sha1 INPUT", "sha256 INPUT"] relatedfuncs: [md5] aliases: [sha1, sha256] --- `sha1` hashes the given input and returns its SHA1 checksum. ```go-html-template {{ sha1 "Hello world, gophers!" }} ``` `sha256` hashes the given input and returns its SHA256 checksum. ```go-html-template {{ sha256 "Hello world, gophers!" }} ```