Skip to content

Latest commit

 

History

History
64 lines (45 loc) · 1.36 KB

File metadata and controls

64 lines (45 loc) · 1.36 KB

Etool

etool is a command-line utility written in Node.js for encrypting and decrypting text and files using AES-256-CBC encryption. It can also encrypt and decrypt all files in a specified folder.

Features

  • Encrypt and decrypt text
  • Encrypt and decrypt all files in a folder
  • Set a custom password for encryption and decryption

Usage

Installation

  1. Clone the repository:
    git clone https://github.com/aleyhany9/terminalcraft.git
  2. Navigate to the submissions/etool directory:
    cd submissions/etool
  3. Install the dependencies:
    npm install

Command-line Options

  • -e, --encrypt <text>: Encrypt the given text
  • -d, --decrypt <text>: Decrypt the given text
  • -p, --password <pass>: Set the encryption password
  • -n, --folder-encrypt <path>: Encrypt all files in a folder
  • -f, --folder-decrypt <path>: Decrypt all files in a folder

Examples

Encrypting Text

node index.js -e "Hello, World!" -p "password123"

Decrypting Text

node index.js -d "encryptedTextHere" -p "password123"

Encrypting a Folder

node index.js -n /path/to/folder -p "password123"

Decrypting a Folder

node index.js -f /path/to/folder -p "password123"

License

This project is licensed under the MIT License. See the LICENSE file for details.