diff options
Diffstat (limited to 'docs/content/en/functions/crypto/FNV32a.md')
-rw-r--r-- | docs/content/en/functions/crypto/FNV32a.md | 26 |
1 files changed, 26 insertions, 0 deletions
diff --git a/docs/content/en/functions/crypto/FNV32a.md b/docs/content/en/functions/crypto/FNV32a.md new file mode 100644 index 000000000..7a7fe303e --- /dev/null +++ b/docs/content/en/functions/crypto/FNV32a.md @@ -0,0 +1,26 @@ +--- +title: crypto.FNV32a +description: Returns the FNV (Fowler–Noll–Vo) 32 bit hash of a given string. +categories: [functions] +keywords: [] +menu: + docs: + parent: functions +function: + aliases: [] + returnType: int + signatures: [crypto.FNV32a STRING] +relatedFunctions: + - crypto.FNV32a + - crypto.HMAC + - crypto.MD5 + - crypto.SHA1 + - crypto.SHA256 +aliases: [/functions/crypto.fnv32a] +--- + +This function calculates the 32 bit [FNV1a hash](https://en.wikipedia.org/wiki/Fowler%E2%80%93Noll%E2%80%93Vo_hash_function#FNV-1a_hash) of a given string according to the [specification](https://datatracker.ietf.org/doc/html/draft-eastlake-fnv-12): + +```go-html-template +{{ crypto.FNV32a "Hello world" }} → 1498229191 +``` |