encodeX is a Django Rest Framework (DRF) project that provides API endpoints for encoding and decoding messages in images using steganography.
-
Clone the repository:
git clone https://github.com/mezardini/encodeX.git cd encodeX -
Install dependencies, apply migrations and run:
pip install -r requirements.txt python manage.py migrate python manage.py runserver
-
To encode a message in an image, make a POST request to the /api/encodeimage/ endpoint. Provide an image file and the message to be encoded as form data. Example curl:
curl -X POST -H "Content-Type: multipart/form-data" -F "image=@/path/to/your/image.jpg" -F "message=Hello, steganography!" http://localhost:8000/api/encodeimage/
-
To decode a message from an encoded image, make a POST request to the /api/decodeimage/ endpoint. Provide the encoded image file as form data. Example using curl:
curl -X POST -H "Content-Type: multipart/form-data" \ -F "image=@/path/to/your/encoded_image.png" \ http://localhost:8000/api/decodeimage/
Encode a Message:
POST /api/encode/: Upload an image and a message to encode the message in the image. Decode an Image:
POST /api/decode/: Upload an encoded image to decode the message.