From: Edouard Date: Fri, 5 Jun 2020 18:04:11 +0000 (+0200) Subject: tpl/crypto: Add hmac X-Git-Tag: v0.73.0~22 X-Git-Url: http://git.maquefel.me/?a=commitdiff_plain;h=7eeebe1e5a86a4ad622bc41f88fcb93b619f5a16;p=brevno-suite%2Fhugo tpl/crypto: Add hmac --- diff --git a/docs/content/en/functions/hmac.md b/docs/content/en/functions/hmac.md new file mode 100644 index 00000000..02343196 --- /dev/null +++ b/docs/content/en/functions/hmac.md @@ -0,0 +1,34 @@ +--- +title: hmac +linktitle: hmac +description: Compute the cryptographic checksum of a message. +godocref: +date: 2020-05-29 +publishdate: 2020-05-29 +lastmod: 2020-05-29 +categories: [functions] +menu: + docs: + parent: "functions" +keywords: [hmac,checksum] +signature: ["hmac HASH_TYPE KEY MESSAGE"] +workson: [] +hugoversion: +relatedfuncs: [hmac] +deprecated: false +aliases: [hmac] +--- + +`hmac` returns a cryptographic hash that uses a key to sign a message. + +``` +{{ hmac "sha256" "Secret key" "Hello world, gophers!"}}, +