Socket
Socket
Sign inDemoInstall

browserify-sign

Package Overview
Dependencies
9
Maintainers
1
Versions
32
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

    browserify-sign

browserify-sign [![Build Status](https://travis-ci.org/calvinmetcalf/browserify-sign.svg)](https://travis-ci.org/calvinmetcalf/browserify-sign) ===


Version published
Weekly downloads
8.3M
decreased by-2.21%
Maintainers
1
Install size
456 kB
Created
Weekly downloads
 

Package description

What is browserify-sign?

The browserify-sign package is a part of the crypto-browserify project, which aims to emulate Node.js's crypto module for use in the browser. It specifically implements the sign and verify functionality for RSA and ECDSA, which are cryptographic algorithms used for digital signatures.

What are browserify-sign's main functionalities?

Signing data

This feature allows you to create digital signatures using RSA or ECDSA. The code sample demonstrates how to sign some data using an RSA private key.

const createSign = require('browserify-sign').createSign;
const sign = createSign('RSA-SHA256');
sign.update('some data to sign');
const privateKey = '...'; // Your RSA private key
const signature = sign.sign(privateKey, 'base64');

Verifying signatures

This feature enables you to verify digital signatures to ensure data integrity and authenticity. The code sample shows how to verify a signature using an RSA public key.

const createVerify = require('browserify-sign').createVerify;
const verify = createVerify('RSA-SHA256');
verify.update('some data to sign');
const publicKey = '...'; // Your RSA public key
const signature = '...'; // The signature to verify
const isValid = verify.verify(publicKey, signature, 'base64');

Other packages similar to browserify-sign

Readme

Source

browserify-sign Build Status

a package to duplicate the functionality of node's crypto public key functions, much of this is based on Fedor Indutny's work on tls.js.

done

  • basic rsa signing and verifying with the right api

todo

  • tests to make sure we actually did it
  • chinese remainder theorom?
  • eliptical curve signing
  • publicEncrypt and privateDecrypt? (out of scope)
  • other key encodings (non rss format public keys)
  • dsa keys?
  • keys with passwords

FAQs

Last updated on 19 Dec 2014

Did you know?

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

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc