Files
opera-proxy/seclient/hash.go
T

13 lines
197 B
Go
Raw Normal View History

2021-03-25 22:09:36 +02:00
package seclient
import (
"crypto/sha1"
"encoding/hex"
"strings"
)
func capitalHexSHA1(input string) string {
h := sha1.Sum([]byte(input))
return strings.ToUpper(hex.EncodeToString(h[:]))
}