Find deprecated crypto.createCipher() and crypto.createDecipher() usage
Recipe ID
org.openrewrite.node.migrate.crypto.find-create-cipherArtifact@openrewrite/recipes-nodejscrypto.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-cipherIf the recipe isn’t available locally, install it with:
mod config recipes npm install @openrewrite/recipes-nodejs