diff options
Diffstat (limited to 'docs/content/en/functions/md5.md')
-rw-r--r-- | docs/content/en/functions/md5.md | 30 |
1 files changed, 30 insertions, 0 deletions
diff --git a/docs/content/en/functions/md5.md b/docs/content/en/functions/md5.md new file mode 100644 index 000000000..7db856a75 --- /dev/null +++ b/docs/content/en/functions/md5.md @@ -0,0 +1,30 @@ +--- +title: md5 +linktitle: md5 +description: hashes the given input and returns its MD5 checksum. +date: 2017-02-01 +publishdate: 2017-02-01 +lastmod: 2017-02-01 +categories: [functions] +menu: + docs: + parent: "functions" +keywords: [] +signature: ["md5 INPUT"] +workson: [] +hugoversion: +relatedfuncs: [sha] +deprecated: false +aliases: [] +--- + +``` +{{ md5 "Hello world, gophers!" }} +<!-- returns the string "b3029f756f98f79e7f1b7f1d1f0dd53b" --> +``` + +This can be useful if you want to use [Gravatar](https://en.gravatar.com/) for generating a unique avatar: + +``` +<img src="https://www.gravatar.com/avatar/{{ md5 "your@email.com" }}?s=100&d=identicon"> +``` |