Giter Club home page Giter Club logo

ecdh-nodejs's Introduction

Elliptic-curve Diffie–Hellman (ECDH)

This repo describes how to generate a shared secret between two clients, Alice and Bob, using Elliptic-curve Diffie–Hellman (ECDH) key exchange. This repo uses secp256k1 curve which will be used to generate a shared secret key that is 256 bits long, which will be as secure as a normal 3072-bit key generated using plain Diffie-Hellman. You can change the curve name to use other curves to get a desired bit length key (like: 384 bits, using secp384r1 curve)

Elliptic curves are much more powerful in the way that they are more secure and moreover they require less computing power for the same amount security. The shared key generated using ECDH which is 256 bit long is as secure as a 3072 bit long shared key generated using traditional Diffie-Hellman.

How to use this repo

  1. Clone the repo using
git clone https://github.com/trulymittal/ECDH-nodejs.git
  1. Open terminal inside the downloaded project and install the dependencies using:
npm install
  1. Finally run the script using:
npm start

Authors

License

This project is licensed under the MIT License.

ecdh-nodejs's People

Contributors

trulymittal 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.