Update README.md

This commit is contained in:
xiaoqidun 2020-01-06 14:29:26 +08:00 committed by GitHub
parent 3941e9ba42
commit f7bd6defb2
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -1 +1,11 @@
# idkey
# idkey
golang argon2id 密码hash和验证
# 安装方法
go get -u github.com/xiaoqidun/idkey
# 使用方法
```go
// 生成argon2id hash密码
hash := idkey.Encode("admin")
// 进行argon2id hash验证
verify := idkey.Verify("admin", hash)
```