/Cryptography

A command line application for encrypting and decrypting files.

Primary LanguagePython

File Encryption

A python script for encrypting and decrypting files run over the command line. The script uses AES encryption. It creates a unique key and initialization vector for each file and further encrypts them.

Table of contents

Built With

Prerequisites

What things you need to install the software and how to install them

  • python 3

Linux:

sudo apt-get install python3.8

Windows:

Download from python.org

Mac OS:

brew install python3
  • pip

Linux and Mac OS:

pip install -U pip

Windows:

python -m pip install -U pip

Installation

To set up virtual environment and install dependencies:

python -m venv venv
source venv/bin/activate
pip install -r requirements.txt

To encrypt a file:

python encryption.py -e filepath/filename

To decrypt a file:

python encryption.py -d filepath/filename

To access help menu:

python encryption.py -h

For more info on how to run command line scripts in Laravel: How to execute an external/linux/windows commands in laravel 5