If you bumped a Lambda function to nodejs22.x and your handler now dies on the first crypto call, this is the wall:

TypeError: crypto.createCipher is not a function

Enter fullscreen mode

Exit fullscreen mode

The function is simply gone from the crypto object in Node.js 22. Here is the full story and the migration path.