encryptox
v2.1.0
Published
A powerful encryption tool that can encrypt and decrypt any file type using the `AES-256-CBC` encryption algorithm.
Readme
Encryptox
A powerful encryption tool that can encrypt and decrypt any file type using the AES-256-CBC encryption algorithm.
How to use?
- Install the NPM package globally by running the following command:
npm install -g encryptox- Run the program like
encryptox <encrypt/decrypt> <filepath> <password> [<outputFolderPath>]Note:
- The
encryptanddecryptcommands are case-sensitive. - The
passwordneeds to be at least 32 characters long since theAES-256-CBCencryption algorithm requires a 32-byte (256-bit) key. - You can generate a 32-character password using the following command:
openssl rand -hex 32 - Make sure you store the generate password in a secure location since it is required to decrypt the file/s.
Example Usage:
- To encrypt a text file:
encryptox encrypt letter.txt mysecret ./outputThis would output a encrypted.txt file with the encrypted text.
- To decrypt this
encrypted.txtfile, run:
encryptox decrypt encrypted.txt mysecretThis would output a decrypted.txt file with the decrypted text.
