From caf173eb1c6bcf3518a5a25f2d826f6caa601bd6 Mon Sep 17 00:00:00 2001 From: Giovanni Harting <539@idlegandalf.com> Date: Sun, 3 Apr 2022 18:30:46 +0200 Subject: [PATCH] fixed decryption key not being 16 bytes long --- csgo/demo_loader.go | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/csgo/demo_loader.go b/csgo/demo_loader.go index a0dfc2c..356e3c5 100644 --- a/csgo/demo_loader.go +++ b/csgo/demo_loader.go @@ -16,7 +16,6 @@ import ( "google.golang.org/protobuf/proto" "io/ioutil" "os" - "strconv" "strings" "sync" "time" @@ -432,7 +431,7 @@ func (dml *DemoMatchLoader) handleDemo(demo *Demo, apiKey string, rl *rate.Limit demo.Url = lastRound.GetMap() demo.MatchId = matchZero.GetMatchid() - demo.DecryptionKey = []byte(strings.ToUpper(strconv.FormatUint(matchZero.GetWatchablematchinfo().GetClDecryptdataKeyPub(), 16))) + demo.DecryptionKey = []byte(strings.ToUpper(fmt.Sprintf("%016x", matchZero.GetWatchablematchinfo().GetClDecryptdataKeyPub()))) tMatch, err := dml.db.Match.Create(). SetID(matchZero.GetMatchid()).