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 010073a6c0 chore(自动测试): 添加ci自动编译测试 2 weeks ago
.drone.yml chore(自动测试): 添加ci自动编译测试 2 weeks ago
.gitignore 添加忽略提交文件 8 months ago
LICENSE Initial commit 8 months ago
README.md feat(加密选项): 支持设置加密选项 5 months ago
go.mod chore(厂商依赖): 清理vendor 1 month ago
go.sum chore(厂商依赖): 清理vendor 1 month ago
idkey.go feat(加密选项): 支持设置加密选项 5 months ago

README.md

idkey

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)