forked from volschin/node-curve25519
-
Notifications
You must be signed in to change notification settings - Fork 2
curve25519 for node and works with windows
License
MystK/node-curve25519
Folders and files
| Name | Name | Last commit message | Last commit date | |
|---|---|---|---|---|
Repository files navigation
This is a binding to the curve25519-donna library for node that supports windows. Usage:
var curve = require('curve25519');
Methods
=======
`curve.makeSecretKey(secret)`
-----------------------------
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.
`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-n2` or `yarn add curve25519-n2`
About
curve25519 for node and works with windows
Topics
Resources
License
Stars
Watchers
Forks
Packages 0
No packages published
Languages
- C 88.5%
- C++ 5.4%
- JavaScript 5.2%
- Python 0.9%