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

browserify-aes

Package Overview
Dependencies
Maintainers
5
Versions
27
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

browserify-aes

aes, for browserify

  • 1.2.0
  • latest
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
8.5M
decreased by-16.27%
Maintainers
5
Weekly downloads
 
Created

What is browserify-aes?

The browserify-aes package is a JavaScript implementation of the AES (Advanced Encryption Standard) cryptographic algorithm. It is designed to be compatible with the crypto module in Node.js, making it useful for browser environments where the crypto module is not natively available. This package allows for encryption and decryption of data using AES, supporting various modes of operation and key sizes.

What are browserify-aes's main functionalities?

Encryption

This feature allows you to encrypt data using AES. The code sample demonstrates how to create a cipher instance, encrypt some text, and output the encrypted data in hex format.

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

Decryption

This feature enables you to decrypt data that was previously encrypted with AES. The code sample shows how to create a decipher instance, decrypt some encrypted data, and output the original text.

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

Other packages similar to browserify-aes

Keywords

FAQs

Package last updated on 03 Apr 2018

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