feat: Prism HTTP/SOCKS5 代理网关及管理台
CI / docker (push) Successful in 2m54s

Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
renjue
2026-06-23 15:58:28 +08:00
commit fe8ea784d0
170 changed files with 20056 additions and 0 deletions
+19
View File
@@ -0,0 +1,19 @@
package auth
import "testing"
func TestGenerateAndHashAPIKey(t *testing.T) {
key, err := GenerateAPIKey()
if err != nil {
t.Fatal(err)
}
if err := ValidateAPIKeyFormat(key); err != nil {
t.Fatal(err)
}
if HashAPIKey(key) == "" {
t.Fatal("empty hash")
}
if HashAPIKey(key) != HashAPIKey(key) {
t.Fatal("hash not stable")
}
}