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

@stablelib/x25519

Package Overview
Dependencies
Maintainers
1
Versions
14
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@stablelib/x25519

X25519 key agreement (Curve25519)

  • 0.7.3
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
287K
decreased by-14.24%
Maintainers
1
Weekly downloads
 
Created

What is @stablelib/x25519?

@stablelib/x25519 is a JavaScript library that provides cryptographic functions for performing X25519 key exchange operations. It is part of the StableLib collection of cryptographic libraries, which are designed to be secure, fast, and easy to use.

What are @stablelib/x25519's main functionalities?

Generate Key Pair

This feature allows you to generate a new X25519 key pair, which includes a public key and a private key.

const { generateKeyPair } = require('@stablelib/x25519');
const keyPair = generateKeyPair();
console.log(keyPair);

Compute Shared Secret

This feature allows you to compute a shared secret using your private key and the other party's public key. This shared secret can be used for secure communication.

const { generateKeyPair, sharedKey } = require('@stablelib/x25519');
const aliceKeyPair = generateKeyPair();
const bobKeyPair = generateKeyPair();
const sharedSecret = sharedKey(aliceKeyPair.secretKey, bobKeyPair.publicKey);
console.log(sharedSecret);

Other packages similar to @stablelib/x25519

FAQs

Package last updated on 24 Oct 2019

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