vue-storefront-api
vue-storefront-api copied to clipboard
DeprecationWarning: crypto.createDecipher is deprecated.
running with node v12 i get:
[DEP0106] DeprecationWarning: crypto.createDecipher is deprecated.
https://stackoverflow.com/questions/60369148/how-do-i-replace-deprecated-crypto-createcipher-in-nodejs#:~:text=according%20to%20the%20deprecation%20docs,salt)%20and%20static%20initialization%20vectors.
Using crypto.createCipher() and crypto.createDecipher() should be avoided as they use a weak key derivation function (MD5 with no salt) and static initialization vectors. It is recommended to derive a key using crypto.pbkdf2() or crypto.scrypt() and to use crypto.createCipheriv() and crypto.createDecipheriv() to obtain the Cipher and Decipher objects respectively.
i just saw that this is a duplicate: https://github.com/DivanteLtd/vue-storefront-api/issues/404