Files
hiscaler-gox/cryptox/sha1.go

13 lines
167 B
Go
Raw Normal View History

2025-04-08 19:16:39 +02:00
package cryptox
import (
"crypto/sha1"
"encoding/hex"
)
func Sha1(s string) string {
h := sha1.New()
h.Write([]byte(s))
return hex.EncodeToString(h.Sum(nil))
}