Socket
Socket
Sign inDemoInstall

ecc-jsbn

Package Overview
Dependencies
1
Maintainers
3
Versions
4
Alerts
File Explorer

Advanced tools

Install Socket

Protect your apps from supply chain attacks

Install

ecc-jsbn

ECC JS code based on JSBN

    0.2.0latest
    GitHub
    npm

Version published
Maintainers
3
Weekly downloads
13,956,251
decreased by-16.47%

Weekly downloads

Package description

What is ecc-jsbn?

The ecc-jsbn package is a JavaScript library that provides functionalities for Elliptic Curve Cryptography (ECC) using the jsbn library, which is a pure JavaScript implementation of arbitrary-precision integer arithmetic. It allows for the implementation of secure digital signatures and key agreement protocols using elliptic curve cryptography.

What are ecc-jsbn's main functionalities?

Key Pair Generation

This feature allows for the generation of elliptic curve cryptography key pairs, which can be used for secure digital signatures and key agreement protocols.

var EC = require('ecc-jsbn').EC;
var keypair = EC.generateKeyPair();

Digital Signature

This feature enables the creation of digital signatures using a private key. These signatures can be used to verify the authenticity and integrity of messages.

var EC = require('ecc-jsbn').EC;
var keypair = EC.generateKeyPair();
var signature = EC.sign('message to sign', keypair.privateKey);

Signature Verification

This feature allows for the verification of digital signatures using a public key to ensure that messages are authentic and have not been tampered with.

var EC = require('ecc-jsbn').EC;
var isValid = EC.verify('message to sign', signature, keypair.publicKey);

Other packages similar to ecc-jsbn

Readme

Source

ecc-jsbn

ECC package based on jsbn from Tom Wu.

This is a subset of the same interface as the node compiled module, but works in the browser too.

Also uses point compression now from https://github.com/kaielvin.

Keywords

FAQs

Last updated on 29 Jul 2018

Did you know?

Socket installs a GitHub app to automatically flag issues on every pull request and report the health of your dependencies. Find out what is inside your node modules and prevent malicious activity before you update the dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc