Debian Codegraph @

docs/content/en/functions/crypto/MD5.md

raw
1 ---
2 title: crypto.MD5
3 description: Returns the MD5 checksum of the given input, encoded to a hexadecimal string.
4 categories: []
5 keywords: []
6 params:
7 functions_and_methods:
8 aliases: [md5]
9 returnType: string
10 signatures: [crypto.MD5 INPUT]
11 aliases: [/functions/md5]
12 ---
13
14 ```go-html-template
15 {{ md5 "Hello world" }} → 3e25960a79dbc69b674cd4ec67a72c62
16 ```
17
18 This can be useful if you want to use [Gravatar][] for generating a unique avatar:
19
20 ```html
21 <img src="https://www.gravatar.com/avatar/{{ md5 "[email protected]" }}?s=100&d=identicon">
22 ```
23
24 [Gravatar]: https://en.gravatar.com/