Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Asymmetric digital signature Node.JS

I need to find some criptographic solution, which allows me to sign some data using private key, and check signature using public key. Would be great if there is some nodejs package.

Thanks!

like image 518
Anatoliy Avatar asked Mar 15 '11 12:03

Anatoliy


2 Answers

Sounds like your needs should be met by the built-in crypto package, no? Check the docs on the createSign and createVerify methods, and the signer and verifier objects they respectively generate. Note that these require your system to have openssl installed where Node can find it.

like image 128
Trevor Burnham Avatar answered Oct 26 '22 02:10

Trevor Burnham


If you want to sign xml there is xml-crypto - an xml digital signature library for node.js

like image 44
Yaron Naveh Avatar answered Oct 26 '22 04:10

Yaron Naveh