An open API service indexing awesome lists of open source software.

https://github.com/tusharsadhwani/steganography

A steganographic image encoder and decoder written in Python3.6
https://github.com/tusharsadhwani/steganography

python steganography

Last synced: 3 months ago
JSON representation

A steganographic image encoder and decoder written in Python3.6

Awesome Lists containing this project

README

        

# image-encode

A steganographic image encoder and decoder written in Python3.6

## Installation

Open a terminal and type:

```bash
git clone https://github.com/tusharsadhwani/image-encode.git
cd image-encode
pip install -r requirements.txt
```

## How to run

1. Encoding

Copy an image file to the `/image-encode` directory (or use the provided `dog.jpg` image)

Then run:

```bash
python encode.py --image=dog.jpg --text=encode.txt
```

(replace `dog.jpg` with your image name and `encode.txt` with any ASCII text file)
This will create an image named `encoded-dog.png`, which will have the message encoded in it.

1. Decoding

```bash
python decode.py --image=encoded-dog.png
```

this will create a textfile named `dog.txt`, whose contents should be identical to `encode.txt`