New Research: Supply Chain Attack on Axios Pulls Malicious Dependency from npm.Details
Socket
Book a DemoSign in
Socket

js-simple-aes

Package Overview
Dependencies
Maintainers
1
Versions
1
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

js-simple-aes

Simple util for AES-CBC encryption/decryption with node-forge.

latest
Source
npmnpm
Version
0.0.1
Version published
Maintainers
1
Created
Source

Js-simple-aes

Simple util for AES-CBC encryption/decryption with node-forge.

Installation

npm install --save js-simple-aes

Usage

import Jsa from 'js-simple-aes';

const crypto = new Jsa({ key: 'my_secret_password' });
const data = [
  { name: 'first item', price: 73.52 },
  { name: 'second item', price: 0.15 }
];

const encrypted = crypto.encrypt(data);
// -->
// nf5kiNgcSSkf5yvVtw+/JEX4WmR5S8xuPFqfZwaoFk/7YK9pVJmWsfToiZK2SSNjEP0uswbjpSUiyib5JuB759wR8/mfefaaRpTpvmUFq0U=

const decrypted = crypto.decrypt(encrypted);
// -->
// [
//   { name: 'first item', price: 73.52 },
//   { name: 'second item', price: 0.15 }
// ];

FAQs

Package last updated on 31 May 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