Drop redundant internal utils

Signed-off-by: Sean Du <do4suki@gmail.com>
This commit is contained in:
2026-06-03 23:22:33 +08:00
parent f255b25a2e
commit 9b367594ba
14 changed files with 29 additions and 46 deletions
+2 -2
View File
@@ -8,7 +8,7 @@ import (
ghomeschema "honoka-chan/internal/schema/ghome"
"honoka-chan/internal/session"
"honoka-chan/pkg/encrypt"
honokautils "honoka-chan/pkg/utils"
"honoka-chan/pkg/utils"
"net/url"
"strings"
@@ -44,7 +44,7 @@ func handshake(ctx *gin.Context) {
}
ss.SetRandKey(randKey)
token := fmt.Sprintf(`{"message":"ok","result":0,"token":"%s"}`, strings.ToUpper(honokautils.RandomStr(33)))
token := fmt.Sprintf(`{"message":"ok","result":0,"token":"%s"}`, strings.ToUpper(utils.RandomStr(33)))
encryptedToken, err := openssl.Des3ECBEncrypt([]byte(token), []byte(randKey[:24]), openssl.PKCS7_PADDING)
if ss.CheckErr(err) {
return