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

curve25519-n

Package Overview
Dependencies
Maintainers
1
Versions
5
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

curve25519-n

A binding to the curve25519-donna library.

  • 1.2.1
  • latest
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
46
decreased by-28.12%
Maintainers
1
Weekly downloads
 
Created
Source

node-curve25519

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

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

Keywords

FAQs

Package last updated on 08 Nov 2022

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