// src/lib/hashing.ts
import crypto from 'crypto';

/**
 * Generates an MD5 hash from a file buffer.
 */
export function generateFileHash(buffer: Buffer): string {
  return crypto.createHash('md5').update(buffer).digest('hex');
}