Programming Assignment based on Linear Feedback Shift Register using Python
-
Clone Repository (Using SSH)
git clone git@github.com:er-knight/photo-magic.git
-
Clone Repository (Using HTTPS)
git clone https://github.com/er-knight/photo-magic.git
-
Change Directory to
photo-magic
cd photo-magic
-
Create Virtual Environment
python3 -m venv venv
-
Activate Virtual Environment (Bash on Linux)
source venv/bin/activate
-
Activate Virtual Environment (PowerShell on Windows)
PS C:\> venv\Scripts\Activate.ps1
-
Install Requirements
python3 -m pip install -r requirements.txt
-
Build
lfsr
Extensionpython3 setup.py build_ext --inplace
Note:
- On Linux,
build-essential
andpython3-dev
packages are required to build an Extension Module. - On Windows, Microsoft Visual C/C++ (MSVC) is required to build an Extension Module. It can be downloaded from here.
- On Linux,
python3 main.py --encrypt --image-path=<image-path> --password=<password> --tap-code=<tap-code>
python3 main.py --decrypt --image-path=<image-path> --password=<password> --tap-code=<tap-code>