Giter Club home page Giter Club logo

digital-signing-library's Introduction

Build Status

Digital-Signing-Library

a .Net library to sign and verify documents i.e.PDFs or any other data.

Digital-Signing

a .Net library to sign and verify document/data.

---This is a package to Digitally Sign and Verify Data(i.e. documents)----------- It can be found in the Nuget Manager of Visual Studio

PM->Install-Package DigitalSigning.Utility.Package

[Usage]

-Use the Nuget Manager to locate and install the package i.e. DigitalSigning.Utility.Package

-Namespace Using DigitalSigning

[Overview]

-The main class that implements the Digital Signing and Verification is called DigitalSigning.

It contains method to Hash,Sign and Verify Documents

[NB]:

Store the Signatures for Later Verification.

[Implementation]

var digitalSigning=new DigitalSigning.Services.DigitalSigning();//instantiate the class.

UnicodeEncoding byteConverter=new UnicodeEncoding();//use this to convert your data to bytes

i.e. byteConverter.GetBytes('your data')

[Retrieve Certificates]

-The method below retrieves certificates stored in your computer.It returns an array of certificates found.

var certificates=digitalSigning.GetCertificates("StoreName","StoreLocation")

var certificateToUse=certificates[n]..where n represents a number i.e. 1 or 2 or 3..etc.This returns a single certificate

[Sign The document using a Certificate i.e.X509]

-The SignUsingCertificate takes two parameters.i.e. data you want to sign and the X509 certificate you want to use

var signature=digitalSigning.SignUsingCertificate('data(convert your data to bytes)' , 'certificateToUse(From Above explanation) or an X509 Certificate ')

[Verify The document using a Certificate i.e.X509 Returns true if successful otherwise false ]

-The VerifyUsingCertificate takes three parameters.

var signature=digitalSigning.VerifyUsingCertificate('data to verify(in bytes)' , 'signature of the original data', 'X509 Certificate used to sign the document or data')

[Sign The document using a Key]

-The document or data can be a path to a document you want to sign.

var signature=digitalSigning.SignDocument("document/data you want to sign", "a key/name to later identify the original owner");

[Verify signature using a Key.Returns true if successful otherwise false]

The document or data can be a path to a document you want to sign.

var verifySignature=digitalSigning.VerifySignature("signature of the original document/data","the document/data to verify", "the key used to sign the document/data");

digital-signing-library's People

Contributors

izaktumz-zz 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.