feat: enhance environment variable handling and security features

This commit is contained in:
CalciumIon
2024-12-30 17:24:19 +08:00
parent bb5e032dd2
commit 2f01a2125f
5 changed files with 16 additions and 3 deletions

View File

@@ -14,7 +14,7 @@ func GenerateHMACWithKey(key []byte, data string) string {
}
func GenerateHMAC(data string) string {
h := hmac.New(sha256.New, []byte(SessionSecret))
h := hmac.New(sha256.New, []byte(CryptoSecret))
h.Write([]byte(data))
return hex.EncodeToString(h.Sum(nil))
}