import crypto from 'crypto'; crypto.setFips(true); if (!crypto.getFips()) { throw new Error('FIPS mode was not enabled after crypto.setFips(true)'); } console.log('FIPS COMPLIANCE CHECK: YES');