Zaid
Zaid

Reputation: 79

How to implement Digital Signatures in node.js

I'm new in node.js and I need to implement digital signatures.The Scenario is that, a user "A" will send some data by signing it with its private key (Stored on local machine) on to the server. So any other user "B" can verify it by decrypting the data with public key (Stored in DB on server) of "A". Now following are my questions. How to generate public private keys? How to store private key on local machine? How to sign data using private key and how to verify it using public key?

Upvotes: 0

Views: 2097

Answers (1)

Mohak Chugh
Mohak Chugh

Reputation: 1

I found the below flow diagram on google. You can use this to get a grasp of he functionality. You can use this library to implement your signatures. Not sure if this solves your problem or not, but I hope it will help you in getting some clarity.

diagram

Upvotes: -1

Related Questions