package usecase

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

func hashTarget(target string) string {
	sum := sha256.Sum256([]byte(strings.TrimSpace(target)))
	return hex.EncodeToString(sum[:])
}
