idkey/README.md
xiaoqidun 0eae46dfb5
All checks were successful
continuous-integration/drone/push Build is passing
Update README.md
2021-01-21 17:31:12 +08:00

12 lines
382 B
Markdown

# idkey [![PkgGoDev](https://pkg.go.dev/badge/github.com/xiaoqidun/idkey)](https://pkg.go.dev/github.com/xiaoqidun/idkey)
Golang Argon2id 密码hash和验证
# 安装方法
go get -u github.com/xiaoqidun/idkey
# 使用方法
```go
// 生成argon2id hash密码
hash := idkey.Encode([]byte("admin"), nil)
// 进行argon2id hash验证
verify := idkey.Verify([]byte("admin"), hash)
```