Files
warmbly/internal/pkg/crypt/hash.go
T
2026-01-17 14:11:14 +00:00

12 lines
163 B
Go

package crypt
import (
"crypto/sha256"
"encoding/hex"
)
func SHA256(s string) string {
hash := sha256.Sum256([]byte(s))
return hex.EncodeToString(hash[:])
}