From f7bd6defb250cfedf3512cdc03d4c85839e18079 Mon Sep 17 00:00:00 2001 From: xiaoqidun Date: Mon, 6 Jan 2020 14:29:26 +0800 Subject: [PATCH] Update README.md --- README.md | 12 +++++++++++- 1 file changed, 11 insertions(+), 1 deletion(-) diff --git a/README.md b/README.md index 1a574bd..4d8ff39 100644 --- a/README.md +++ b/README.md @@ -1 +1,11 @@ -# idkey \ No newline at end of file +# 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) +```