Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

dhcurve

Package Overview
Dependencies
Maintainers
1
Versions
13
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

dhcurve

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

  • 1.3.0
  • latest
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
3
decreased by-25%
Maintainers
1
Weekly downloads
 
Created
Source

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);

Keywords

FAQs

Package last updated on 10 Dec 2017

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc