Socket
Socket
Sign inDemoInstall

browserify-cipher

Package Overview
Dependencies
17
Maintainers
1
Versions
2
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

    browserify-cipher

ciphers for the browser


Version published
Weekly downloads
8.5M
increased by1.23%
Maintainers
1
Install size
347 kB
Created
Weekly downloads
 

Package description

What is browserify-cipher?

The browserify-cipher package is a collection of modules for encoding and decoding data using various encryption algorithms. It is primarily used for browserify but can be used in other JavaScript environments as well. It provides an easy-to-use interface for encrypting and decrypting data, making it a valuable tool for securing information in web applications.

What are browserify-cipher's main functionalities?

Data Encryption

This feature allows you to encrypt data using a specified encryption algorithm and key. The code sample demonstrates how to encrypt a piece of text using the AES-256-CBC algorithm.

const crypto = require('crypto');
const cipher = crypto.createCipher('aes-256-cbc', 'a secret');
let encrypted = cipher.update('some clear text data', 'utf8', 'hex');
encrypted += cipher.final('hex');
console.log(encrypted);

Data Decryption

This feature enables you to decrypt previously encrypted data using the same algorithm and key. The code sample shows how to decrypt text that was encrypted using the AES-256-CBC algorithm.

const crypto = require('crypto');
const decipher = crypto.createDecipher('aes-256-cbc', 'a secret');
let decrypted = decipher.update(encrypted, 'hex', 'utf8');
decrypted += decipher.final('utf8');
console.log(decrypted);

Other packages similar to browserify-cipher

Readme

Source

browserify-cipher

Build Status

Provides createCipher, createDecipher, createCipheriv, createDecipheriv and getCiphers for the browserify. Includes AES and DES ciphers.

FAQs

Last updated on 11 Apr 2018

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