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-magiccd 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
lfsrExtensionpython3 setup.py build_ext --inplaceNote:
- On Linux,
build-essentialandpython3-devpackages 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>

