chore: 删除误入库的一次性临时文件(tmphash / zz_tmpverify_test)
ci-pangolin / Lint — shellcheck (push) Successful in 5s
ci-pangolin / OpenAPI Sync Check (push) Successful in 17s
ci-pangolin / Redline Scan — 脱敏 (UI 文案) (push) Successful in 5s
ci-pangolin / Flutter — analyze + test (push) Successful in 23s
ci-pangolin / Portable SQL — 可移植性 (mysql/sqlite) (push) Successful in 5s
ci-pangolin / Codegen Drift — token 生成物未漂移 (push) Successful in 5s
ci-pangolin / Go — build + test (push) Successful in 10s
ci-pangolin / E2E Smoke — L4 进程级端到端 (push) Successful in 14s
ci-pangolin / Go — integration (mysql/redis testcontainers) (push) Failing after 4m9s
ci-pangolin / Golden — 视觉回归 (components + auth) (push) Successful in 15s

P1 提交时 git add -A 误带入早期改密码调试残留(注释自标「临时,不提交」)。
This commit is contained in:
wangjia
2026-06-29 00:28:54 +08:00
parent c0c4b94e29
commit 8370ee1eb7
2 changed files with 0 additions and 37 deletions
-27
View File
@@ -1,27 +0,0 @@
// tmphash — 一次性:按服务端 argon2id 参数算密码 hash(临时,不提交)。
package main
import (
"crypto/rand"
"encoding/base64"
"fmt"
"os"
"golang.org/x/crypto/argon2"
)
func main() {
pw := "wangjia812"
if len(os.Args) > 1 {
pw = os.Args[1]
}
salt := make([]byte, 16)
if _, err := rand.Read(salt); err != nil {
panic(err)
}
key := argon2.IDKey([]byte(pw), salt, uint32(1), uint32(65536), uint8(4), uint32(32))
fmt.Printf("$argon2id$v=%d$m=%d,t=%d,p=%d$%s$%s\n",
argon2.Version, 65536, 1, 4,
base64.RawStdEncoding.EncodeToString(salt),
base64.RawStdEncoding.EncodeToString(key))
}
-10
View File
@@ -1,10 +0,0 @@
package auth
import "testing"
import "os"
func TestTmpVerify(t *testing.T){
h,_ := os.ReadFile("/Users/wangjia/.claude/jobs/f76e813b/tmp/newhash.txt")
enc := string(h); enc = enc[:len(enc)-1] // strip newline
ok,err := VerifyPassword(enc, "wangjia812")
if err!=nil || !ok { t.Fatalf("verify failed ok=%v err=%v", ok, err) }
t.Log("verify OK")
}