import { createHash } from "crypto"; export const CODE_TTL_MINUTES = 10; export const MAX_ATTEMPTS = 5; export function hashCode(code: string, salt: string): string { return createHash("sha256").update(`${salt}:${code}`).digest("hex"); }