You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I'm working on an app where Private and Public Keypairs are generated at client side. I am passing public key to backend server ie; Node js to encrypt data.
When I'm using nodejs crypto module on backend server, it throws error Error: error:0909006C:PEM routines:get_name:no start line
I'm working on an app where Private and Public Keypairs are generated at client side. I am passing public key to backend server ie; Node js to encrypt data.
When I'm using nodejs crypto module on backend server, it throws error
Error: error:0909006C:PEM routines:get_name:no start line
Here is my code:
Any suggestion how can I use publicKeyString in Node js to encrypt data?
Update
I have observed that Public key generated using another package works perfectly with a small change like below;
The text was updated successfully, but these errors were encountered: