Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/gohugoio/hugo.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorEdouard <m@edouard.paris>2020-06-05 21:04:11 +0300
committerGitHub <noreply@github.com>2020-06-05 21:04:11 +0300
commit7eeebe1e5a86a4ad622bc41f88fcb93b619f5a16 (patch)
tree5d36446c4d39b9893c0a50f0ad22f38083d9bcb6 /docs/data/docs.json
parent740fa4a91d01fa1c0b151bae0c97a13eea61f5f9 (diff)
tpl/crypto: Add hmac
Diffstat (limited to 'docs/data/docs.json')
-rw-r--r--docs/data/docs.json17
1 files changed, 17 insertions, 0 deletions
diff --git a/docs/data/docs.json b/docs/data/docs.json
index bf31f45ce..01b8b8d54 100644
--- a/docs/data/docs.json
+++ b/docs/data/docs.json
@@ -3059,6 +3059,23 @@
"6ec43b78da9669f50e4e422575c54bf87536954ccd58280219c393f2ce352b46"
]
]
+ },
+ "HMAC": {
+ "Description": "HMAC hashes the concatenation of a message and a secret key with the given hash function and returns its checksum.",
+ "Args": [
+ "hash function",
+ "message",
+ "key"
+ ],
+ "Aliases": [
+ "hmac"
+ ],
+ "Examples": [
+ [
+ "{{ hmac \"sha256\" \"Hello Gopher!\" \"Hello world, gophers!\" }}",
+ "32aea97d5688891fb35175c5518012323a3079994b909dd6f1bc481e4d0e7ce9"
+ ]
+ ]
}
},
"data": {