A simple CLI to encrypt and decrypt files using Python
Use the following commands to install
Note - You might need root privilege to run this command
git clone https://github.com/soutrikneogi/simple-encryption.git
cd simple-encryption
python3 setup.py install
To encrypt source file
simple_encryption encyrpt <filename or path>
To encrypt source file to a destination file
simple_encryption encrypt <filename or filepath> -d <filename or path>
To encrypt source directory
simple_encryption encrypt -r <dirname or path>
To encrypt source directory to destination directory
simple_encryption encrypt -r <dirname or path> -d <dirname or path>
To encrypt only files in the root of a directory name
simple_encryption encrypt -r -f <dirname or path>
In the all the above examples a key was created by default and stored in the file ".secrets/enc_key"
To encrypt with your key
simple_encryption encrypt <filename or path> -K <your key>
To encrypt with your key stored in a file
simple_encryption encrypt <filename or path> -k <key filename or path>
To decrypt source file
simple_encryption decyrpt <filename or path>
To decrypt source file to a destination file
simple_encryption decrypt <filename or filepath> -d <filename or path>
To decrypt source directory
simple_encryption decrypt -r <dirname or path>
To decrypt source directory to destination directory
simple_encryption decrypt -r <dirname or path> -d <dirname or path>
To decrypt only files in the root of a directory name
simple_encryption decrypt -r -f <dirname or path>
In the all the above examples a key was extracted by default from the file ".secrets/enc_key", which was created during encryption without using your own key
To decrypt with your key
simple_encryption decrypt <filename or path> -K <your key>
To decrypt with your key stored in a file
simple_encryption decrypt <filename or path> -k <key filename or path>
Warning! This is a simple encryption tool and it is advised to use it with caution. Do backup your data before encrypting