1import crypto from 'crypto'; 2 3export function hashString(str: string) { 4 return crypto.createHash('md5').update(str).digest('hex'); 5} 6