How to replace crypto deprecated
arjunsubedi-varosa opened this issue · comments
Arjun Subedi commented
What is the replacement for cypto in nodejs
Abdulkerim Karaman commented
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.