Skip to content

soutrikneogi/simple-encryption

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Simple Encryption

A simple CLI to encrypt and decrypt files using Python

Installation

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

Usage

Encryption

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>

Decryption

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>

Built With

Author

Reference

Note

Warning! This is a simple encryption tool and it is advised to use it with caution. Do backup your data before encrypting

About

A simple CLI to encrypt and decrypt files using Python

Topics

Resources

License

Stars

Watchers

Forks

Languages