Merge commit '5be51ac3db225d5df501ed1fa1499c41d97dbf65'

This commit is contained in:
Bjørn Erik Pedersen
2025-04-10 13:04:51 +02:00
987 changed files with 12379 additions and 14083 deletions

View File

@@ -1,18 +1,13 @@
---
title: hash.FNV32a
description: Returns the 32-bit FNV (FowlerNollVo) non-cryptographic hash of the given string.
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]
params:
functions_and_methods:
aliases: []
returnType: int
signatures: [hash.FNV32a STRING]
aliases: [/functions/crypto.fnv32a]
---

View File

@@ -3,18 +3,15 @@ title: hash.XxHash
description: Returns the 64-bit xxHash non-cryptographic hash of the given string.
categories: []
keywords: []
action:
aliases: [xxhash]
related:
- functions/hash/FNV32a
- functions/crypto/HMAC
- functions/crypto/MD5
- functions/crypto/SHA1
- functions/crypto/SHA256
returnType: string
signatures: [hash.XxHash STRING]
params:
functions_and_methods:
aliases: [xxhash]
returnType: string
signatures: [hash.XxHash STRING]
---
```go-html-template
{{ hash.XxHash "Hello world" }} → c500b0c912b376d8
```
[xxHash](https://xxhash.com/) is a very fast non-cryptographic hash algorithm. Hugo uses [this Go implementation](https://github.com/cespare/xxhash).

View File

@@ -1,12 +1,7 @@
---
title: Hash functions
linkTitle: hash
description: Template functions to create non-cryptographic hashes.
description: Use these functions to create non-cryptographic hashes.
categories: []
keywords: []
menu:
docs:
parent: functions
---
Use these functions to create non-cryptographic hashes.