Skip to main content
setFips - crypto - Node documentation
function setFips

Usage in Deno

import { setFips } from "node:crypto";
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.

Parameters

bool: boolean

true to enable FIPS mode.

Return Type

void