HUGO
News Docs Themes Community GitHub

crypto.MD5

Hashes the given input and returns its MD5 checksum encoded to a hexadecimal string.

Syntax

crypto.MD5 INPUT

Returns

string

Alias

md5
{{ md5 "Hello world" }} → 3e25960a79dbc69b674cd4ec67a72c62

This can be useful if you want to use Gravatar for generating a unique avatar:

<img src="https://www.gravatar.com/avatar/{{ md5 "[email protected]" }}?s=100&d=identicon">
OSZAR »