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

aes-pkcs

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

aes-pkcs

AES 128/256, CBC mode, PKCS #5/7 Paddiong, Base64 encoding

  • 0.0.0
  • latest
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
7
increased by250%
Maintainers
1
Weekly downloads
 
Created
Source

AES-PKCS

Outline

The npm module aes-pkcs provides an utility class AesPkcs5 using below options:

  • AES-128/256
  • CBC mode
  • PKCS#5 Padding
  • Base64 Encoding

Installation

npm install --save aes-pkcs

Usage

Example Code

import { AesPkcs5 } from "aes-pkcs";

const content: string = "Hello world! This is an example content for the AesPkcs.encode() and decode() functions.";
const key: string = "p69nfZ7H2kSaA2vO";
const iv: string = "f8U1pc8jo7fvNAUV";

const encoded: string = AesPkcs5.encode(content, key, iv);
const decoded: string = AesPkcs5.decode(content, key, iv);

console.log(encoded);
console.log(decoded);

Console Output

B/ZQ1VHSGBpo2KwDiiLZCKO/
Hello world! This is an example content for the AesPkcs.encode() and decode() functions. 

Keywords

FAQs

Package last updated on 15 Mar 2021

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