2 Star 0 Fork 0

TeamsHub/backend-gopkg

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
克隆/下载
hash.go 382 Bytes
一键复制 编辑 原始数据 按行查看 历史
HCY 提交于 2024-05-10 12:41 +08:00 . c
package hash
var _ Hash = (*hash)(nil)
type Hash interface {
i()
// HashidsEncode 加密
HashidsEncode(params []int) (string, error)
// HashidsDecode 解密
HashidsDecode(hash string) ([]int, error)
}
type hash struct {
secret string
length int
}
func New(secret string, length int) Hash {
return &hash{
secret: secret,
length: length,
}
}
func (h *hash) i() {}
Loading...
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
1
https://gitee.com/wuzheng0709/backend-gopkg.git
git@gitee.com:wuzheng0709/backend-gopkg.git
wuzheng0709
backend-gopkg
backend-gopkg
v1.6.6

搜索帮助