mirror of
https://github.com/Snawoot/opera-proxy.git
synced 2025-09-04 11:41:14 +00:00
12 lines
197 B
Go
12 lines
197 B
Go
package seclient
|
|
|
|
import (
|
|
"crypto/sha1"
|
|
"encoding/hex"
|
|
"strings"
|
|
)
|
|
|
|
func capitalHexSHA1(input string) string {
|
|
h := sha1.Sum([]byte(input))
|
|
return strings.ToUpper(hex.EncodeToString(h[:]))
|
|
}
|