FsetFips
Bun

function

crypto.setFips

function setFips(
bool: boolean
): void;

Enables the FIPS compliant crypto provider in a FIPS-enabled Node.js build. Throws an error if FIPS mode is not available.

@param bool

true to enable FIPS mode.