import { type BinaryLike, createHash } from 'crypto'; export function sha256sum(data: BinaryLike) { return createHash('sha256').update(data).digest('hex'); }