This commit is contained in:
Vladislav Yarmak
2021-03-25 22:09:36 +02:00
parent 3f986a0e50
commit 4235406c2c
4 changed files with 87 additions and 6 deletions
+12
View File
@@ -0,0 +1,12 @@
package seclient
import (
"crypto/sha1"
"encoding/hex"
"strings"
)
func capitalHexSHA1(input string) string {
h := sha1.Sum([]byte(input))
return strings.ToUpper(hex.EncodeToString(h[:]))
}