Skip to content
This repository has been archived by the owner on Jul 17, 2023. It is now read-only.
/ node-curve25519 Public archive
forked from thejh/node-curve25519

This is a binding to the curve25519-donna library for node.

License

Notifications You must be signed in to change notification settings

volschin/node-curve25519

 
 

Repository files navigation

node-curve25519

npm version npm downloads GitHub last commit Node-CI Known Vulnerabilities Quality Gate Status Lint

This is a binding to the curve25519-donna library for node. Usage:

const curve = require('curve25519-n');

Methods

curve.makeSecretKey(secret)

Returns a Buffer.

curve.derivePublicKey(secret)

Provide it with your secret key as a 32-bytes-long Buffer and get a Buffer containing your public key as the result.

curve.deriveSharedSecret(mysecret, hispublic)

Derive your shared secret with someone else by giving this function two 32-bytes-long buffers containing your secret key and the other persons public key. Returns a Buffer.

Installing

npm i -S curve25519-n or yarn add curve25519-n.

Testing

yarn test

About

This is a binding to the curve25519-donna library for node.

Topics

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

  • C 87.9%
  • JavaScript 7.5%
  • C++ 3.0%
  • Python 1.6%