# hash.XxHash
> 返回给定字符串的 64 位 xxHash 非加密哈希。
- 官方英文原文：https://gohugo.io/functions/hash/xxhash/
- 本页规范地址：https://hugozh.cn/functions/hash/xxhash/
- 最近更新：2026-10-02
- 最后提交：912b1d3 chore(site): 添加 static/CNAME（hugozh.cn），供 GitHub Pages 等平台绑定自定义域名
- 签名：hash.XxHash STRING
- 返回类型：string
- 站点：Hugo 中文文档（https://hugozh.cn/）· 社区维护的非官方中文翻译，如有出入以官方英文原文为准

---
```go-html-template
{{ hash.XxHash "Hello world" }} → c500b0c912b376d8
```

[xxHash][] 是一种速度极快的非加密哈希算法。Hugo 使用[这份 Go 实现][this Go implementation]。

[this Go implementation]: https://github.com/cespare/xxhash
[xxHash]: https://xxhash.com/

