Skip to content
This repository has been archived by the owner on May 28, 2023. It is now read-only.

DeprecationWarning: crypto.createDecipher is deprecated. #502

Open
simonmaass opened this issue Aug 6, 2020 · 1 comment
Open

DeprecationWarning: crypto.createDecipher is deprecated. #502

simonmaass opened this issue Aug 6, 2020 · 1 comment

Comments

@simonmaass
Copy link

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.

@simonmaass simonmaass changed the title [DEP0106] DeprecationWarning: crypto.createDecipher is deprecated. DeprecationWarning: crypto.createDecipher is deprecated. Aug 6, 2020
@simonmaass
Copy link
Author

i just saw that this is a duplicate:
#404

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant