HUGO
Menu
GitHub 90265 stars Mastodon

crypto.SHA256

Returns the SHA256 checksum of the given input, encoded to a hexadecimal string.
Syntax
crypto.SHA256 INPUT
Returns
string
Alias
sha256

Usage

The crypto.SHA256 function returns the SHA256 checksum of the given input, encoded to a hexadecimal string.

Examples

{{ crypto.SHA256 "Hello world" }} → 64ec88ca00b268e5ba1a35678a1b5316d212f4f366b2477232534a8aeca37f3c