soltecsis / fwcloud-api

API REST for the project FWCloud.net
GNU Affero General Public License v3.0
4 stars 6 forks source link

Refactor to Replace Deprecated createDecipher and createCipher Methods #792

Open soltecsis-iortega opened 1 month ago

soltecsis-iortega commented 1 month ago

The methods createDecipher and createCipher are currently deprecated and should be replaced with the newer createDecipheriv and createCipheriv methods. This change is necessary to ensure future compatibility and maintainability of the codebase.

The use of createDecipher and createCipher is deprecated, leading to the following warning:

(node:20577) [DEP0106] DeprecationWarning: crypto.createDecipher is deprecated.
(Use `node --trace-deprecation ...` to show where the warning was created)

Continued usage of these deprecated methods could result in security vulnerabilities and compatibility issues with future versions of Node.js.