Skip to content
This repository has been archived by the owner on Sep 18, 2022. It is now read-only.
/ dhcurve Public archive

An ECDH crytography library for node.js and the browser.

License

Notifications You must be signed in to change notification settings

mbullington/dhcurve

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

43 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

dhcurve Build Status

npm install dhcurve --save

dhcurve is a lower-level ECC and ECDH library for JavaScript. It works in the browser, on node.js 0.10.x, 0.12.x, and io.js. While running in node.js environment on *nix platforms, dhcurve is backed by OpenSSL. In the browser (and in a node.js environment in Windows) it uses sjcl.

Contributing

As crypto peer review is very important, feel free to review and critique the code! Help make dhcurve better for everyone.

Examples

Examples can be found in test/test.js, or in example/example.js

var curve = require('dhcurve');

var keypair1 = curve.generateKeyPair(curve.NamedCurve.P256);
var keypair2 = curve.generateKeyPair(curve.NamedCurve.P256);

keypair1.privateKey.getSharedSecret(keypair2.publicKey);

About

An ECDH crytography library for node.js and the browser.

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published