Git Product home page Git Product logo

digital-signature-for-document-signing's Introduction

Digital signature from javascript crypto

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

Plaform dependencies

  • NodeJs >= v10.15

Files and directories

  • ./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 keys
  • signature.txt - sign.js will write generated signature on this file.It will be overritten each time you run sign.js
  • sample-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 signature
  • verify.js - Code script to verify generated gidital signature

Usage

Generate the signature by using keys/privateKey.pem for the document sample-doc.txt

node sign.js

Verify the signature generated from above step(stored in signature.txt)

node verify.js

Generating QR Code for signature.txt

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.

Todos

  • Write MORE Tests
  • ES6

License

MIT

Free Software, Hell Yeah!

digital-signature-for-document-signing's People

Contributors

itsnuwan avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.