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.
- 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.
Clone the repository and install the necessary dependencies:
git clone https://github.com/nomadsdev/cipher-cli.git
cd cipher-cli
npm install
To use CipherCLI, run the cli.js
script:
node cli.js
-
Encrypt a Message:
Choose option1
to encrypt a message. Enter the plain text you want to encrypt, and the program will output the encrypted data. -
Decrypt a Message:
Choose option2
to decrypt a message. Enter the IV (Initialization Vector) and the encrypted data (both in hex format) to receive the decrypted text.
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!
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.
If you would like to contribute to CipherCLI, please fork the repository, make your changes, and submit a pull request.
This project is licensed under the MIT License.
For any questions or support, please contact us at: [email protected]