Digital Signature
Library for create and verify Digital Signature based on RSA-SHA256 algorithm.
Installation
Use the package manager npm to install foobar.
npm install digital-signature
Usage
var setPrivateKey getPrivateKey setPublicKey getPublicKey createSign verifySign = var privateKey = 'YOUR-PRIVATE-KEY'var publicKey = 'YOUR-PUBLIC-KEY' //assign private key //return private key //assign public key return public key const digitalSignature = const isVerified = // if valid will be return 'true' and if invalid will be return false
Contributing
Pull requests are welcome. For major changes, please open an issue first to discuss what you would like to change.
Please make sure to update tests as appropriate.