Skip to content

Programming Assignment based on Linear Feedback Shift Register using Python

License

Notifications You must be signed in to change notification settings

nobleknightt/photo-magic

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

16 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Photo Magic

Programming Assignment based on Linear Feedback Shift Register using Python

butterfly.png
$ python3 main.py --encrypt --image-path=butterfly.png --password=10735 --tap-code=28
info: encrypted image saved as butterfly26.png                                       
$ python3 main.py --decrypt --image-path=butterfly2.png --password=10735 --tap-code=28
info: encrypted image saved as butterfly26.png                                        

Basic Setup

  • 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 Extension

    python3 setup.py build_ext --inplace
    

    Note:

    • On Linux, build-essential and python3-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.

Encrypt Image

python3 main.py --encrypt --image-path=<image-path> --password=<password> --tap-code=<tap-code>

Decrypt Image

python3 main.py --decrypt --image-path=<image-path> --password=<password> --tap-code=<tap-code>

Reference

About

Programming Assignment based on Linear Feedback Shift Register using Python

Topics

Resources

License

Stars

Watchers

Forks

Languages