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

382 B

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)