You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
xiaoqidun 0eae46dfb5
Update README.md
1 day ago
.drone.yml chore(自动测试): 添加ci自动编译测试 4 months ago
.gitignore 添加忽略提交文件 1 year ago
LICENSE Initial commit 1 year ago
README.md Update README.md 1 day ago
go.mod docs(更新文档): 更新文档 3 months ago
go.sum docs(更新文档): 更新文档 3 months ago
idkey.go docs(更新文档): 更新文档 3 months ago

README.md

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)