"TypeError: crypto.createCipher is not a function — migrating to createCipheriv on Node.js 22 Lambda"
crypto.createCipher and crypto.createDecipher were removed in Node.js 22 (DEP0106). The exact error, why it happened, and a complete migration to crypto.createCipheriv with proper key derivation.