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 3 forks source link

why not decrypt with private key ? #3

Closed fturiot closed 4 years ago

fturiot commented 4 years ago

i do not understand why

normaly publickey for crypt ans private key for decrypt

bin-y commented 4 years ago

Hi, currently, public key is used for crypt and a correct private key is necessary for decryption process (in the step ecdh.computeSecret). The way the project using the private key is in accordance with ECIES.