Use sha256 as advertised

This commit is contained in:
Ice3man543
2021-04-07 21:29:27 +05:30
parent 87f92d43d6
commit 8370013923
+2 -2
View File
@@ -3,7 +3,7 @@ package runner
import (
"bufio"
"bytes"
"crypto/sha1"
"crypto/sha256"
"encoding/hex"
"encoding/json"
"fmt"
@@ -780,7 +780,7 @@ retry:
finalPath = "/"
}
hasher := sha1.New()
hasher := sha256.New()
hasher.Write(resp.Data)
bodySha := hex.EncodeToString(hasher.Sum(nil))
hasher.Reset()