import { hash } from 'ohash' import si from 'systeminformation' async function getSystemInfo() { const [uuid, baseboard, bios, system, diskLayout, networkInterfaces] = await Promise.all([ si.uuid(), si.baseboard(), si.bios(), si.system(), si.diskLayout(), si.networkInterfaces(), ]) return { uuid, baseboard, bios, system, diskLayout, networkInterfaces, } } export async function getHardwareFingerprint() { const systemInfo = await getSystemInfo() return hash(systemInfo) }