Socket
Book a DemoInstallSign in
Socket

aes-cli

Package Overview
Dependencies
Maintainers
1
Versions
4
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

aes-cli

![AES CLI Screenshot](Node-Encryption-CLI-Screenshot.jpg)

latest
npmnpm
Version
1.3.0
Version published
Maintainers
1
Created
Source

AES CLI Screenshot

AES CLI

An example of how one might encrypt/decrypt files using node.

Code for this companion article: Encrypting Files With Node.

:exclamation: Important

This code is adapted from the original. The original repo can be found here: https://github.com/bbstilson/node-encryption

Changelog

Added

  • Add Node bin and Shebang to use as CLI tool. - F1LT3R
  • Add linting inputs and vscode settings. - F1LT3R
  • Add password, and password verification input. - F1LT3R

Installation

npm install

Usage

Encryption

  • From your shell: aes encrypt test.txt
  • You will be prompted for a password, and password verification.
  • You will now see test.txt.enc. This is the encrypted data.
  • You can delete the original file, if you like.

Decryption

  • From your shell: aes decrypt test.txt
  • You will be prompted for a password, and password verification.
  • You will now see test.txt.unenc. This file will be identical to the original.
  • You can rename this file back to test.txt.

FAQs

Package last updated on 19 Oct 2020

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