Files
pocket-id-pocket-id/backend/internal/utils/hash_util.go

12 lines
181 B
Go
Raw Normal View History

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