bin-y / standard-ecies

Standard ECIES implemention for NodeJS based on crypto.ECDH with no other dependencies.
Creative Commons Zero v1.0 Universal
8 stars 2 forks source link

crypto.createCipher deprecated #2

Closed fturiot closed 4 years ago

fturiot commented 4 years ago

we must use crypto.createCipheriv instead

bin-y commented 4 years ago

Hi, thanks for your feedback. Happy to know that there are still real world users exist. I thought nobody is using this library thus abandoned this repo for a long time. I will address this issue in recent.

bin-y commented 4 years ago

Using crypto.createCipher / crypto.createDecipher is reasonable in certain scenarios because the function it self does not make a system unsafe. However, since it is deprecated by nodejs, I made some change to avoid using them by default. But users of this library can still use old crypto.createCipher if they need. This issue should have fixed in version 2.0.0.