Skip to content

Commit 2177336

Browse files
Moving Away from SHA1 to SHA512
1 parent 8ac6340 commit 2177336

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

internal/pkg/crypto/sha.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
package crypto
22

33
import (
4-
"crypto/sha1"
4+
"crypto/sha512"
55
"fmt"
66
"io"
77

@@ -10,7 +10,7 @@ import (
1010

1111
// GenerateSHA generates SHA from string
1212
func GenerateSHA(data string) string {
13-
hasher := sha1.New()
13+
hasher := sha512.New()
1414
_, err := io.WriteString(hasher, data)
1515
if err != nil {
1616
logrus.Errorf("Unable to write data in hash writer %v", err)

0 commit comments

Comments
 (0)