setFips - Node documentation
function setFips

Usage

import { setFips } from "node:crypto";

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

Parameters

bool: boolean

true to enable FIPS mode.

Return Type

void