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
11 months ago
.drone.yml chore(自动测试): 添加ci自动编译测试 1 year ago
.gitignore 添加忽略提交文件 2 years ago
LICENSE Initial commit 2 years ago Update 11 months ago
go.mod docs(更新文档): 更新文档 1 year ago
go.sum docs(更新文档): 更新文档 1 year ago
idkey.go docs(更新文档): 更新文档 1 year ago

idkey PkgGoDev

Golang Argon2id 密码hash和验证


go get -u


// 生成argon2id hash密码
hash := idkey.Encode([]byte("admin"), nil)
// 进行argon2id hash验证
verify := idkey.Verify([]byte("admin"), hash)