This repository contains a web application that allows users to apply a simple cipher or decipher images by shifting pixel values. The app is built using Streamlit and lets you securely encode and decode images with ease.
- β¨ Features
- π Demo
- π οΈ Installation
- π Usage
- π§° Technologies Used
- π Acknowledgments
- π€ Connect with Me
- πΌοΈ Upload images in JPG, JPEG, or PNG formats.
- π Cipher Images: Encode images by shifting pixel values.
- π Decipher Images: Decode previously ciphered images.
- π Adjustable Shift Value for the cipher and decipher operations.
- πΎ Download the processed image.
- π» Interactive web interface built with Streamlit.
You can try a live demo of the application by uploading an image and applying a cipher or decipher operation.
To run this application locally, follow these steps:
Make sure you have the following installed:
- Python 3.8 or higher
-
Clone the repository:
git clone https://github.com/yourusername/image-cipher-generator.git cd image-cipher-generator -
Create a virtual environment:
python -m venv venv source venv/bin/activate # For macOS and Linux venv\Scripts\activate # For Windows
-
Install dependencies:
pip install -r requirements.txt
-
Run the Streamlit app:
streamlit run app.py
-
Open the application in your browser:
http://localhost:8501
- Open the app in your browser.
- πΌοΈ Upload an image using the "Choose an image..." button.
- Select a shift value using the slider (default is 50).
- Choose to Cipher or Decipher the image.
- The app will display the processed image.
- π₯ Download the ciphered or deciphered image.
- π₯οΈ Streamlit - For building the web application interface.
- π§ͺ NumPy - For numerical operations on image arrays.
- πΌοΈ PIL (Pillow) - For handling image processing.
- π’ Python - For the application backend.
This project uses Streamlit for the UI and Pillow for image handling.