18 Commits
Author SHA1 Message Date
xiaoqidun 22df8fec59 feat(更新依赖): 更新golang.org/x/crypto到v0.55.0 2026-08-23 23:42:24 +08:00
xiaoqidun bb03fd012b feat(更新依赖): 更新golang.org/x/crypto到v0.54.0 2026-07-15 12:29:22 +08:00
xiaoqidun 86c0fa96ea feat(授权文件): 规范授权文件 2026-03-25 21:33:20 +08:00
xiaoqidun 76ea0edab5 feat(更新依赖): 更新x包,提升go mod版本 2026-03-25 21:31:32 +08:00
xiaoqidun bfb10d1816 feat(忽略文件): 添加忽略文件 2025-11-27 16:52:00 +08:00
xiaoqidun 581af88854 feat(更新依赖): 更新依赖 2025-11-27 16:49:49 +08:00
xiaoqidun 36740c9c16 docs(更新文档): 更新文档和依赖 2025-09-24 03:50:13 +08:00
xiaoqidun 7ec260f328 feat(更新依赖): 更新依赖 2025-09-07 17:11:20 +08:00
xiaoqidun d6421aaf41 feat(更新依赖): 更新依赖 2025-04-21 10:01:21 +08:00
xiaoqidun 68a1466365 feat(更新依赖): 更新依赖 2024-12-12 09:25:11 +08:00
xiaoqidun 4b28aed195 feat(升级依赖): 升级依赖 2024-12-05 10:16:14 +08:00
xiaoqidun 049b1d61d1 feat(更新依赖): 更新依赖 2024-09-16 12:31:29 +08:00
xiaoqidun 1f9473afbd feat(升级依赖): 升级依赖 2024-08-21 17:04:58 +08:00
xiaoqidun e2ff6bb6df feat(升级依赖): 升级依赖 2024-06-05 20:56:14 +08:00
xiaoqidun 4f84704da4 feat(升级依赖): 升级依赖 2024-05-07 18:47:55 +08:00
xiaoqidun f894c870d4 feat(更新依赖): 更新依赖 2024-04-09 14:23:54 +08:00
xiaoqidun a2cc489c96 feat(升级依赖): 升级依赖 2024-03-13 17:08:22 +08:00
xiaoqidun 61175b11c8 feat(升级依赖): 升级依赖 2024-02-13 01:22:55 +08:00
7 changed files with 17 additions and 20 deletions

No files matched your search

-10
View File
@@ -1,10 +0,0 @@
kind: pipeline
type: docker
name: default
steps:
- name: build
pull: if-not-exists
image: golang
commands:
- go build idkey.go
+2
View File
@@ -1 +1,3 @@
.idea/ .idea/
.vscode/
.devcontainer/
+1 -1
View File
@@ -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
+5 -1
View File
@@ -1,7 +1,11 @@
# idkey [![PkgGoDev](https://pkg.go.dev/badge/github.com/xiaoqidun/idkey)](https://pkg.go.dev/github.com/xiaoqidun/idkey) # idkey [![PkgGoDev](https://pkg.go.dev/badge/github.com/xiaoqidun/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密码
+3 -3
View File
@@ -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.18.0 require golang.org/x/crypto v0.55.0
require golang.org/x/sys v0.16.0 // indirect require golang.org/x/sys v0.47.0 // indirect
+4 -4
View File
@@ -1,4 +1,4 @@
golang.org/x/crypto v0.18.0 h1:PGVlW0xEltQnzFZ55hkuX5+KLyrMYhHld1YHO4AKcdc= golang.org/x/crypto v0.55.0 h1:+KWHjbgOaAQ66dh/YlkZKHlz9ZUlq61AFirAR9ntP8M=
golang.org/x/crypto v0.18.0/go.mod h1:R0j02AL6hcrfOiy9T4ZYp/rcWeMxM3L6QYxlOuEG1mg= golang.org/x/crypto v0.55.0/go.mod h1:uq0V9dE/fzQuJtbnL+2EhWOE63vo164FY8xqEnV9xis=
golang.org/x/sys v0.16.0 h1:xWw16ngr6ZMtmxDyKyIgsE93KNKz5HKmMa3b8ALHidU= golang.org/x/sys v0.47.0 h1:o7XGOvZQCADBQQ4Y7VNq2dRWQR7JmOUW8Kxx4ZsNgWs=
golang.org/x/sys v0.16.0/go.mod h1:/VUhepiaJMQUp4+oa/7Zr1D23ma6VTLIYjOOTFZPUcA= golang.org/x/sys v0.47.0/go.mod h1:4GL1E5IUh+htKOUEOaiffhrAeqysfVGipDYzABqnCmw=
+2 -1
View File
@@ -6,8 +6,9 @@ import (
"encoding/base64" "encoding/base64"
"errors" "errors"
"fmt" "fmt"
"golang.org/x/crypto/argon2"
"strings" "strings"
"golang.org/x/crypto/argon2"
) )
// Data 密文编码结构 // Data 密文编码结构