← All recipes
Moderne licensed

Find deprecated crypto.createCipher() and crypto.createDecipher() usage

Recipe IDorg.openrewrite.node.migrate.crypto.find-create-cipherArtifact@openrewrite/recipes-nodejs

crypto.createCipher() and crypto.createDecipher() were deprecated in Node.js 10 (DEP0106) and removed in Node.js 22. Use crypto.createCipheriv() and crypto.createDecipheriv() instead.

Single recipeDEP0106Proprietary

Usage

This recipe has no required configuration options. You’ll need the Moderne CLI configured before running the command below.

mod run . --recipe org.openrewrite.node.migrate.crypto.find-create-cipher

If the recipe isn’t available locally, install it with:

mod config recipes npm install @openrewrite/recipes-nodejs