Commit fb8d52d75ad for nodejs
commit fb8d52d75adac8b4f7af27e5b43a18d42533cfa6
Author: Filip Skokan <panva.ip@gmail.com>
Date: Wed Aug 5 20:21:04 2026 +0200
crypto: move DEP0093 to End-of-Life
Signed-off-by: Filip Skokan <panva.ip@gmail.com>
Assisted-by: Codex
PR-URL: https://github.com/nodejs/node/pull/64777
Fixes: https://github.com/nodejs/node/issues/56733
Refs: https://github.com/nodejs/node/pull/64211
Refs: https://github.com/nodejs/node/pull/63966
Refs: https://github.com/nodejs/node/pull/53329
Refs: https://github.com/nodejs/node/pull/48950
Refs: https://github.com/nodejs/node/issues/45465
Refs: https://github.com/nodejs/node/issues/42827
Refs: https://github.com/nodejs/node/issues/47076
Refs: https://github.com/nodejs/node/pull/62862
Refs: https://github.com/nodejs/node/pull/38512
Reviewed-By: Yagiz Nizipli <yagiz@nizipli.com>
Reviewed-By: James M Snell <jasnell@gmail.com>
Reviewed-By: Richard Lau <richard.lau@ibm.com>
Reviewed-By: Gürgün Dayıoğlu <hey@gurgun.day>
diff --git a/doc/api/crypto.md b/doc/api/crypto.md
index 1dcc1b21046..6e0250f2e86 100644
--- a/doc/api/crypto.md
+++ b/doc/api/crypto.md
@@ -4593,18 +4593,6 @@ passed to [`crypto.createPublicKey()`][].
If the `callback` function is provided this function uses libuv's threadpool.
-### `crypto.fips`
-
-<!-- YAML
-added: v6.0.0
-deprecated: v10.0.0
--->
-
-> Stability: 0 - Deprecated
-
-Deprecated property for checking and controlling [FIPS mode][]. Use
-[`crypto.getFips()`][] and [`crypto.setFips()`][] instead.
-
### `crypto.generateKey(type, options, callback)`
<!-- YAML
diff --git a/doc/api/deprecations.md b/doc/api/deprecations.md
index 09a4380cfed..9642da384ac 100644
--- a/doc/api/deprecations.md
+++ b/doc/api/deprecations.md
@@ -2232,6 +2232,9 @@ or `module.exports` instead.
<!-- YAML
changes:
+ - version: REPLACEME
+ pr-url: https://github.com/nodejs/node/pull/64777
+ description: End-of-Life.
- version: v23.0.0
pr-url: https://github.com/nodejs/node/pull/55019
description: Runtime deprecation.
@@ -2240,9 +2243,9 @@ changes:
description: Documentation-only deprecation.
-->
-Type: Runtime
+Type: End-of-Life
-The [`crypto.fips`][] property is deprecated. Please use `crypto.setFips()`
+The `crypto.fips` property is no longer supported. Use `crypto.setFips()`
and `crypto.getFips()` instead.
An automated migration is available ([source](https://github.com/nodejs/userland-migrations/tree/main/recipes/crypto-fips-to-getFips)).
@@ -4884,7 +4887,6 @@ Type: Documentation-only
[`crypto.createDecipheriv()`]: crypto.md#cryptocreatedecipherivalgorithm-key-iv-options
[`crypto.createHash()`]: crypto.md#cryptocreatehashalgorithm-options
[`crypto.createHmac()`]: crypto.md#cryptocreatehmacalgorithm-key-options
-[`crypto.fips`]: crypto.md#cryptofips
[`crypto.pbkdf2()`]: crypto.md#cryptopbkdf2password-salt-iterations-keylen-digest-callback
[`crypto.randomBytes()`]: crypto.md#cryptorandombytessize-callback
[`crypto.scrypt()`]: crypto.md#cryptoscryptpassword-salt-keylen-options-callback
diff --git a/lib/crypto.js b/lib/crypto.js
index 3e720cd3bdf..4261097b52b 100644
--- a/lib/crypto.js
+++ b/lib/crypto.js
@@ -352,13 +352,6 @@ function getRandomBytesAlias(key) {
}
ObjectDefineProperties(module.exports, {
- fips: {
- __proto__: null,
- get: deprecate(getFips, 'The crypto.fips is deprecated. ' +
- 'Please use crypto.getFips()', 'DEP0093'),
- set: deprecate(setFips, 'The crypto.fips is deprecated. ' +
- 'Please use crypto.setFips()', 'DEP0093'),
- },
constants: {
__proto__: null,
configurable: false,
diff --git a/test/doctool/test-doc-api-json.mjs b/test/doctool/test-doc-api-json.mjs
index ff063e018d0..83a0367bde0 100644
--- a/test/doctool/test-doc-api-json.mjs
+++ b/test/doctool/test-doc-api-json.mjs
@@ -158,5 +158,5 @@ for await (const dirent of await fs.opendir(new URL('../../out/doc/api/', import
assert.partialDeepStrictEqual(allExpectedKeys, findAllKeys(json));
}
-assert.strictEqual(numberOfDeprecatedSections, 49); // Increase this number every time a new API is deprecated.
+assert.strictEqual(numberOfDeprecatedSections, 48); // Increase this number every time a new API is deprecated.
assert.strictEqual(numberOfRemovedAPIs, 46); // Increase this number every time a section is marked as removed.