Go to file
xiaoqidun c0ecb85a53
All checks were successful
continuous-integration/drone/push Build is passing
continuous-integration/drone/tag Build is passing
feat(更新依赖): 更新依赖
2022-02-06 21:22:17 +08:00
.drone.yml chore(自动测试): 添加ci自动编译测试 2020-09-11 21:28:11 +08:00
.gitignore 添加忽略提交文件 2020-01-06 14:14:52 +08:00
go.mod feat(更新依赖): 更新依赖 2022-02-06 21:22:17 +08:00
go.sum feat(更新依赖): 更新依赖 2022-02-06 21:22:17 +08:00
idkey.go docs(更新文档): 更新文档 2020-10-21 14:58:40 +08:00
LICENSE Initial commit 2020-01-06 14:06:54 +08:00
README.md Update README.md 2021-01-21 17:31:12 +08:00

idkey PkgGoDev

Golang Argon2id 密码hash和验证

安装方法

go get -u github.com/xiaoqidun/idkey

使用方法

// 生成argon2id hash密码
hash := idkey.Encode([]byte("admin"), nil)
// 进行argon2id hash验证
verify := idkey.Verify([]byte("admin"), hash)