-
-
Notifications
You must be signed in to change notification settings - Fork 1.5k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
4 changed files
with
61 additions
and
3 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
--- | ||
title: hash.FNV32a | ||
description: Returns the 32-bit FNV (Fowler–Noll–Vo) non-cryptographic hash of the given string. | ||
categories: [] | ||
keywords: [] | ||
action: | ||
aliases: [] | ||
related: | ||
- functions/hash/Xxhash | ||
- functions/crypto/HMAC | ||
- functions/crypto/MD5 | ||
- functions/crypto/SHA1 | ||
- functions/crypto/SHA256 | ||
returnType: int | ||
signatures: [hash.FNV32a STRING] | ||
aliases: [/functions/crypto.fnv32a] | ||
--- | ||
|
||
```go-html-template | ||
{{ hash.FNV32a "Hello world" }} → 1498229191 | ||
``` |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
--- | ||
title: hash.XxHash | ||
description: Returns the 64-bit xxHash non-cryptographic hash of the given string. | ||
categories: [] | ||
keywords: [] | ||
action: | ||
aliases: [] | ||
related: | ||
- functions/hash/FNV32a | ||
- functions/crypto/HMAC | ||
- functions/crypto/MD5 | ||
- functions/crypto/SHA1 | ||
- functions/crypto/SHA256 | ||
returnType: string | ||
signatures: [hash.XxHash STRING] | ||
--- | ||
|
||
```go-html-template | ||
{{ hash.XxHash "Hello world" }} → c500b0c912b376d8 | ||
``` |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
--- | ||
title: Hash functions | ||
linkTitle: hash | ||
description: Template functions to create non-cryptographic hashes. | ||
categories: [] | ||
keywords: [] | ||
menu: | ||
docs: | ||
parent: functions | ||
--- | ||
|
||
Use these functions to create non-cryptographic hashes. |