import crypto from 'crypto';

/**
 * Hash a phone number for analytics purposes
 * Uses SHA-256 for consistent, cryptographically strong hashing
 */
export function hashPhoneNumber(phoneNumber: string): string {
  const hash = crypto.createHash('sha256').update(phoneNumber).digest('hex');
  return `sha256_${hash}`;
}
