This repository contains code sample of nodejs crypo built in library for digital signature of document signing
Read more details of javascript cypto library here
- NodeJs >= v10.15
./keys
- Directory contains sample public and private key.You MUST generate your own key for real usage.Refer keys/README.md for how to generate your own keyssignature.txt
- sign.js will write generated signature on this file.It will be overritten each time you run sign.jssample-doc.txt
- This is a sample document to be signed.You can use any document type for this.Just change the document path of sign.js and verify.js files accordingly.sign.js
- Code script to generate digital signatureverify.js
- Code script to verify generated gidital signature
node sign.js
node verify.js
Javascript library qrcode
has been used to generate the qr code.
// Install library dependancy
yarn install
node QRcode.js
QR code will be saved in qr.html
file.Open this file from a web brower to see the QR code.
- Write MORE Tests
- ES6
MIT
Free Software, Hell Yeah!