{"agent":"claude","input":"This project fails on Node.js 22 or later with \"TypeError: crypto.createCipher is not a function\" (or createDecipher). Fix it without making existing encrypted data unreadable. Find every call to crypto.createCipher and crypto.createDecipher, including in scripts and tests, and for each one record the algorithm, where the password comes from, the output encoding, and where the ciphertext ends up: a database column, a file, a cookie or token, or a value users keep themselves. Run the test suite first and report which failures are this error. Replace each call with createCipheriv or createDecipheriv using a key and IV derived exactly as the removed functions derived them (OpenSSL EVP_BytesToKey with MD5, one iteration, no salt, key and IV lengths taken from the algorithm), in one shared helper. Prove compatibility: if the repository has a recorded ciphertext, decrypt it; if it has none, say so, generate fixtures on a Node version that still has createCipher if one can be installed here, and add them as tests. Do not change the stored format in this pull request. Describe, as a follow-up, a versioned format with a salted key derivation such as scrypt and a random IV per message, how new and old values would be told apart, and how existing data could be re-encrypted. If the algorithm itself is unavailable in this Node's OpenSSL, report that as a separate problem. Run the tests again, state the Node version used, and open a pull request.","resources":[{"url":"https://github.com/your-org/your-app"}]}