---
title: "SHA1算法-gsha1"
url: "https://goframe.org/docs/components/crypto-gsha1"
markdown_url: "https://goframe.org/docs/components/crypto-gsha1.md"
locale: "zh-Hans"
version: "2.10.x(Latest)"
section: "组件列表"
category: "组件列表 / 加密解密"
published: "2024-10-21"
updated: "2026-01-27"
description: "SHA1算法在GoFrame框架中的使用，提供了具体的导入包方法和相关接口文档链接，帮助用户在使用Go语言进行加密和数据安全时有效应用SHA1算法。"
keywords: ["SHA1", "gsha1", "GoFrame", "GoFrame框架", "crypto", "算法", "Go语言", "加密", "数据安全", "gogf"]
---

# SHA1算法-gsha1

SHA1算法。

**使用方式**：

```go
import "github.com/gogf/gf/v2/crypto/gsha1"
```

**接口文档**：

[https://pkg.go.dev/github.com/gogf/gf/v2/crypto/gsha1](https://pkg.go.dev/github.com/gogf/gf/v2/crypto/gsha1)
