Skip to content

CipherCLI is a command-line tool for AES-256-CBC encryption and decryption. Easily encrypt and decrypt text securely via your terminal.

Notifications You must be signed in to change notification settings

nomadsdev/cipher-cli

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

CipherCLI

CipherCLI is a command-line tool for encrypting and decrypting text messages using AES-256-CBC encryption. It allows users to securely encode and decode messages via a simple command-line interface.

Features

  • Encryption: Convert plain text into encrypted data.
  • Decryption: Convert encrypted data back into plain text.
  • AES-256-CBC: Uses AES-256-CBC encryption for strong security.

Installation

Clone the repository and install the necessary dependencies:

git clone https://github.com/nomadsdev/cipher-cli.git
cd cipher-cli
npm install

Usage

To use CipherCLI, run the cli.js script:

node cli.js

Commands

  1. Encrypt a Message:
    Choose option 1 to encrypt a message. Enter the plain text you want to encrypt, and the program will output the encrypted data.

  2. Decrypt a Message:
    Choose option 2 to decrypt a message. Enter the IV (Initialization Vector) and the encrypted data (both in hex format) to receive the decrypted text.

Example

Encrypting a Message:

node cli.js
1: Encrypt a message
2: Decrypt a message
Please select an option: 1
Please enter the message to encrypt: Hello, World!
Encrypted data: { iv: '...', content: '...' }

Decrypting a Message:

node cli.js
1: Encrypt a message
2: Decrypt a message
Please select an option: 2
Please enter the IV used for encryption (hex): ...
Please enter the encrypted data (hex): ...
Decrypted data: Hello, World!

Configuration

The encryption key is generated dynamically each time the program is run. If you need a persistent key, modify the config.js file to set a fixed key.

Contributing

If you would like to contribute to CipherCLI, please fork the repository, make your changes, and submit a pull request.

License

This project is licensed under the MIT License.

Contact

For any questions or support, please contact us at: [email protected]

About

CipherCLI is a command-line tool for AES-256-CBC encryption and decryption. Easily encrypt and decrypt text securely via your terminal.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published