mirror of
https://github.com/xiaoqidun/idkey.git
synced 2026-03-27 08:43:36 +08:00
Compare commits
12 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
| 86c0fa96ea | |||
| 76ea0edab5 | |||
| bfb10d1816 | |||
| 581af88854 | |||
| 36740c9c16 | |||
| 7ec260f328 | |||
| d6421aaf41 | |||
| 68a1466365 | |||
| 4b28aed195 | |||
| 049b1d61d1 | |||
| 1f9473afbd | |||
| e2ff6bb6df |
-10
@@ -1,10 +0,0 @@
|
|||||||
kind: pipeline
|
|
||||||
type: docker
|
|
||||||
name: default
|
|
||||||
|
|
||||||
steps:
|
|
||||||
- name: build
|
|
||||||
pull: if-not-exists
|
|
||||||
image: golang
|
|
||||||
commands:
|
|
||||||
- go build idkey.go
|
|
||||||
@@ -1 +1,3 @@
|
|||||||
.idea/
|
.idea/
|
||||||
|
.vscode/
|
||||||
|
.devcontainer/
|
||||||
@@ -1,6 +1,6 @@
|
|||||||
MIT License
|
MIT License
|
||||||
|
|
||||||
Copyright (c) 2020 xiaoqidun
|
Copyright (c) 2020-2026 肖其顿 (XIAO QI DUN)
|
||||||
|
|
||||||
Permission is hereby granted, free of charge, to any person obtaining a copy
|
Permission is hereby granted, free of charge, to any person obtaining a copy
|
||||||
of this software and associated documentation files (the "Software"), to deal
|
of this software and associated documentation files (the "Software"), to deal
|
||||||
|
|||||||
@@ -1,7 +1,11 @@
|
|||||||
# idkey [](https://pkg.go.dev/github.com/xiaoqidun/idkey)
|
# idkey [](https://pkg.go.dev/github.com/xiaoqidun/idkey)
|
||||||
Golang Argon2id 密码hash和验证
|
Go语言Argon2id密码哈希和验证库
|
||||||
|
|
||||||
# 安装方法
|
# 安装方法
|
||||||
|
```shell
|
||||||
go get -u github.com/xiaoqidun/idkey
|
go get -u github.com/xiaoqidun/idkey
|
||||||
|
```
|
||||||
|
|
||||||
# 使用方法
|
# 使用方法
|
||||||
```go
|
```go
|
||||||
// 生成argon2id hash密码
|
// 生成argon2id hash密码
|
||||||
|
|||||||
@@ -1,7 +1,7 @@
|
|||||||
module github.com/xiaoqidun/idkey
|
module github.com/xiaoqidun/idkey
|
||||||
|
|
||||||
go 1.20
|
go 1.25.0
|
||||||
|
|
||||||
require golang.org/x/crypto v0.23.0
|
require golang.org/x/crypto v0.49.0
|
||||||
|
|
||||||
require golang.org/x/sys v0.20.0 // indirect
|
require golang.org/x/sys v0.42.0 // indirect
|
||||||
|
|||||||
@@ -1,4 +1,4 @@
|
|||||||
golang.org/x/crypto v0.23.0 h1:dIJU/v2J8Mdglj/8rJ6UUOM3Zc9zLZxVZwwxMooUSAI=
|
golang.org/x/crypto v0.49.0 h1:+Ng2ULVvLHnJ/ZFEq4KdcDd/cfjrrjjNSXNzxg0Y4U4=
|
||||||
golang.org/x/crypto v0.23.0/go.mod h1:CKFgDieR+mRhux2Lsu27y0fO304Db0wZe70UKqHu0v8=
|
golang.org/x/crypto v0.49.0/go.mod h1:ErX4dUh2UM+CFYiXZRTcMpEcN8b/1gxEuv3nODoYtCA=
|
||||||
golang.org/x/sys v0.20.0 h1:Od9JTbYCk261bKm4M/mw7AklTlFYIa0bIp9BgSm1S8Y=
|
golang.org/x/sys v0.42.0 h1:omrd2nAlyT5ESRdCLYdm3+fMfNFE/+Rf4bDIQImRJeo=
|
||||||
golang.org/x/sys v0.20.0/go.mod h1:/VUhepiaJMQUp4+oa/7Zr1D23ma6VTLIYjOOTFZPUcA=
|
golang.org/x/sys v0.42.0/go.mod h1:4GL1E5IUh+htKOUEOaiffhrAeqysfVGipDYzABqnCmw=
|
||||||
|
|||||||
Reference in New Issue
Block a user