A binding to the curve25519-donna library.
Last updated a year ago by volschin .
ISC · Repository · Bugs · Original npm · Tarball · package.json
$ cnpm install curve25519-n 
SYNC missed versions from official npm registry.


npm version Build Status Build status Known Vulnerabilities Greenkeeper badge

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

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



Provide it with a 32-bytes-long Buffer and it will be modified in-place in order to be a usable secret key. Doesn't return anything.


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.


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

Current Tags

  • 1.5.0                                ...           latest (a year ago)

4 Versions

  • 1.5.0                                ...           a year ago
  • 1.4.0                                ...           2 years ago
  • 1.2.0                                ...           3 years ago
  • 1.1.0                                ...           5 years ago
Maintainers (1)
Today 0
This Week 0
This Month 3
Last Day 0
Last Week 0
Last Month 1
Dependencies (2)
Dev Dependencies (0)

Copyright 2014 - 2016 © |