Security News
Research
Data Theft Repackaged: A Case Study in Malicious Wrapper Packages on npm
The Socket Research Team breaks down a malicious wrapper package that uses obfuscation to harvest credentials and exfiltrate sensitive data.
browserify-sign
Advanced tools
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.
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');
Elliptic is a package that provides implementations of elliptic curve cryptography. It can be used for signing and verifying data, similar to browserify-sign, but it focuses more on elliptic curve algorithms and includes additional functionality such as key generation and encryption/decryption.
Crypto-browserify is a project that aims to replicate the Node.js crypto module in the browser. It includes browserify-sign as a part of its suite, but it also offers a wider range of cryptographic functions such as hashing, cipher, decipher, and more.
Node-forge is a JavaScript implementation of various networking and cryptography tools. It is similar to browserify-sign in that it provides digital signature functionality, but it also includes a wide array of cryptographic operations like encryption, decryption, certificate handling, and more.
A package to duplicate the functionality of node's crypto public key functions, much of this is based on Fedor Indutny's work on indutny/tls.js.
ISC
FAQs
adds node crypto signing for browsers
The npm package browserify-sign receives a total of 8,142,286 weekly downloads. As such, browserify-sign popularity was classified as popular.
We found that browserify-sign demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 5 open source maintainers collaborating on the project.
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.
Security News
Research
The Socket Research Team breaks down a malicious wrapper package that uses obfuscation to harvest credentials and exfiltrate sensitive data.
Research
Security News
Attackers used a malicious npm package typosquatting a popular ESLint plugin to steal sensitive data, execute commands, and exploit developer systems.
Security News
The Ultralytics' PyPI Package was compromised four times in one weekend through GitHub Actions cache poisoning and failure to rotate previously compromised API tokens.