hugo

Fork of github.com/gohugoio/hugo with reverse pagination support

git clone git://git.shimmy1996.com/hugo.git

sha.md (780B)

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