# 加密函数
> 用这些函数生成加密哈希。
- 本页规范地址：https://hugozh.cn/functions/crypto/
- 最近更新：2026-10-02
- 站点：Hugo 中文文档（https://hugozh.cn/）· 社区维护的非官方中文翻译

## 本章页面
- [Hash](https://hugozh.cn/functions/crypto/hash/)：用给定哈希算法计算给定输入的校验和，并编码为十六进制字符串。（Markdown：https://hugozh.cn/functions/crypto/hash/index.md）
- [HMAC](https://hugozh.cn/functions/crypto/hmac/)：返回用密钥对消息签名得到的加密哈希。（Markdown：https://hugozh.cn/functions/crypto/hmac/index.md）
- [MD5](https://hugozh.cn/functions/crypto/md5/)：返回给定输入的 MD5 校验和，并编码为十六进制字符串。（Markdown：https://hugozh.cn/functions/crypto/md5/index.md）
- [SHA1](https://hugozh.cn/functions/crypto/sha1/)：返回给定输入的 SHA1 校验和，并编码为十六进制字符串。（Markdown：https://hugozh.cn/functions/crypto/sha1/index.md）
- [SHA256](https://hugozh.cn/functions/crypto/sha256/)：返回给定输入的 SHA256 校验和，并编码为十六进制字符串。（Markdown：https://hugozh.cn/functions/crypto/sha256/index.md）

---
