mirror of
https://github.com/xiaoqidun/idkey.git
synced 2024-11-21 23:56:45 +08:00
Update README.md
This commit is contained in:
parent
3941e9ba42
commit
f7bd6defb2
12
README.md
12
README.md
@ -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)
|
||||
```
|
||||
|
Loading…
x
Reference in New Issue
Block a user