package cpa

import (
	"crypto/sha256"
	"encoding/hex"
	"strings"
)

func hashConfirmToken(token string) string {
	t := strings.TrimSpace(token)
	if t == "" {
		return ""
	}
	sum := sha256.Sum256([]byte(t))
	return hex.EncodeToString(sum[:])
}
