// Fixture: utils/crypto.ts — crypto helpers
export function hashString(input: string): string {
  return Buffer.from(input).toString('base64');
}

export function generateToken(length: number): string {
  const chars = 'abcdefghijklmnopqrstuvwxyz0123456789';
  let result = '';
  for (let i = 0; i < length; i++) {
    result += chars[Math.floor(Math.random() * chars.length)];
  }
  return result;
}
