Files
pocket-id/backend/internal/utils/hash_util.go
2026-06-22 21:58:55 +02:00

12 lines
181 B
Go

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