summaryrefslogtreecommitdiffstats
path: root/docs/content/en/functions/crypto
diff options
context:
space:
mode:
Diffstat (limited to 'docs/content/en/functions/crypto')
-rw-r--r--docs/content/en/functions/crypto/FNV32a.md18
-rw-r--r--docs/content/en/functions/crypto/HMAC.md19
-rw-r--r--docs/content/en/functions/crypto/MD5.md22
-rw-r--r--docs/content/en/functions/crypto/SHA1.md21
-rw-r--r--docs/content/en/functions/crypto/SHA256.md21
-rw-r--r--docs/content/en/functions/crypto/_index.md12
6 files changed, 50 insertions, 63 deletions
diff --git a/docs/content/en/functions/crypto/FNV32a.md b/docs/content/en/functions/crypto/FNV32a.md
index 7a7fe303e..5c091ebee 100644
--- a/docs/content/en/functions/crypto/FNV32a.md
+++ b/docs/content/en/functions/crypto/FNV32a.md
@@ -1,21 +1,17 @@
---
title: crypto.FNV32a
description: Returns the FNV (Fowler–Noll–Vo) 32 bit hash of a given string.
-categories: [functions]
+categories: []
keywords: []
-menu:
- docs:
- parent: functions
-function:
+action:
aliases: []
+ related:
+ - functions/crypto/HMAC
+ - functions/crypto/MD5
+ - functions/crypto/SHA1
+ - functions/crypto/SHA256
returnType: int
signatures: [crypto.FNV32a STRING]
-relatedFunctions:
- - crypto.FNV32a
- - crypto.HMAC
- - crypto.MD5
- - crypto.SHA1
- - crypto.SHA256
aliases: [/functions/crypto.fnv32a]
---
diff --git a/docs/content/en/functions/crypto/HMAC.md b/docs/content/en/functions/crypto/HMAC.md
index e58619b38..1906689a2 100644
--- a/docs/content/en/functions/crypto/HMAC.md
+++ b/docs/content/en/functions/crypto/HMAC.md
@@ -1,22 +1,17 @@
---
title: crypto.HMAC
-linkTitle: hmac
description: Returns a cryptographic hash that uses a key to sign a message.
-categories: [functions]
+categories: []
keywords: []
-menu:
- docs:
- parent: functions
-function:
+action:
aliases: [hmac]
+ related:
+ - functions/crypto/FNV32a
+ - functions/crypto/MD5
+ - functions/crypto/SHA1
+ - functions/crypto/SHA256
returnType: string
signatures: ['crypto.HMAC HASH_TYPE KEY MESSAGE [ENCODING]']
-relatedFunctions:
- - crypto.FNV32a
- - crypto.HMAC
- - crypto.MD5
- - crypto.SHA1
- - crypto.SHA256
aliases: [/functions/hmac]
---
diff --git a/docs/content/en/functions/crypto/MD5.md b/docs/content/en/functions/crypto/MD5.md
index 9415e015c..ba44660df 100644
--- a/docs/content/en/functions/crypto/MD5.md
+++ b/docs/content/en/functions/crypto/MD5.md
@@ -1,28 +1,22 @@
---
title: crypto.MD5
-linkTitle: md5
-description: hashes the given input and returns its MD5 checksum.
-categories: [functions]
+description: Hashes the given input and returns its MD5 checksum encoded to a hexadecimal string.
+categories: []
keywords: []
-menu:
- docs:
- parent: functions
-function:
+action:
aliases: [md5]
+ related:
+ - functions/crypto/FNV32a
+ - functions/crypto/HMAC
+ - functions/crypto/SHA1
+ - functions/crypto/SHA256
returnType: string
signatures: [crypto.MD5 INPUT]
-relatedFunctions:
- - crypto.FNV32a
- - crypto.HMAC
- - crypto.MD5
- - crypto.SHA1
- - crypto.SHA256
aliases: [/functions/md5]
---
```go-html-template
{{ md5 "Hello world" }} → 3e25960a79dbc69b674cd4ec67a72c62
-
```
This can be useful if you want to use [Gravatar](https://en.gravatar.com/) for generating a unique avatar:
diff --git a/docs/content/en/functions/crypto/SHA1.md b/docs/content/en/functions/crypto/SHA1.md
index 6269efe38..204ff0384 100644
--- a/docs/content/en/functions/crypto/SHA1.md
+++ b/docs/content/en/functions/crypto/SHA1.md
@@ -1,22 +1,17 @@
---
title: crypto.SHA1
-linkTitle: sha1
-description: Hashes the given input and returns its SHA1 checksum.
-categories: [functions]
+description: Hashes the given input and returns its SHA1 checksum encoded to a hexadecimal string.
+categories: []
keywords: []
-menu:
- docs:
- parent: functions
-function:
+action:
aliases: [sha1]
+ related:
+ - functions/crypto/FNV32a
+ - functions/crypto/HMAC
+ - functions/crypto/MD5
+ - functions/crypto/SHA256
returnType: string
signatures: [crypto.SHA1 INPUT]
-relatedFunctions:
- - crypto.FNV32a
- - crypto.HMAC
- - crypto.MD5
- - crypto.SHA1
- - crypto.SHA256
aliases: [/functions/sha,/functions/sha1]
---
diff --git a/docs/content/en/functions/crypto/SHA256.md b/docs/content/en/functions/crypto/SHA256.md
index 3019432d2..6fb657767 100644
--- a/docs/content/en/functions/crypto/SHA256.md
+++ b/docs/content/en/functions/crypto/SHA256.md
@@ -1,22 +1,17 @@
---
title: crypto.SHA256
-linkTitle: sha256
-description: Hashes the given input and returns its SHA256 checksum.
-categories: [functions]
+description: Hashes the given input and returns its SHA256 checksum encoded to a hexadecimal string.
+categories: []
keywords: []
-menu:
- docs:
- parent: functions
-function:
+action:
aliases: [sha256]
+ related:
+ - functions/crypto/FNV32a
+ - functions/crypto/HMAC
+ - functions/crypto/MD5
+ - functions/crypto/SHA1
returnType: string
signatures: [crypto.SHA256 INPUT]
-relatedFunctions:
- - crypto.FNV32a
- - crypto.HMAC
- - crypto.MD5
- - crypto.SHA1
- - crypto.SHA256
aliases: [/functions/sha256]
---
diff --git a/docs/content/en/functions/crypto/_index.md b/docs/content/en/functions/crypto/_index.md
new file mode 100644
index 000000000..5c95aab6e
--- /dev/null
+++ b/docs/content/en/functions/crypto/_index.md
@@ -0,0 +1,12 @@
+---
+title: Crypto functions
+linkTitle: crypto
+description: Template functions to create cryptographic hashes.
+categories: []
+keywords: []
+menu:
+ docs:
+ parent: functions
+---
+
+Use these functions to create cryptographic hashes.