https://github.com/lucaangioloni/image_steganography
Steganography applied to conceal small files inside a PNG image.
https://github.com/lucaangioloni/image_steganography
cryptography encoded-strings encoding image-steganography signal-processing
Last synced: about 1 year ago
JSON representation
Steganography applied to conceal small files inside a PNG image.
- Host: GitHub
- URL: https://github.com/lucaangioloni/image_steganography
- Owner: LucaAngioloni
- License: mit
- Created: 2018-03-04T16:42:10.000Z (over 8 years ago)
- Default Branch: master
- Last Pushed: 2018-03-27T12:41:33.000Z (about 8 years ago)
- Last Synced: 2025-03-30T02:22:11.243Z (about 1 year ago)
- Topics: cryptography, encoded-strings, encoding, image-steganography, signal-processing
- Language: Python
- Size: 1.67 MB
- Stars: 18
- Watchers: 3
- Forks: 3
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Image_Steganography
Steganography applied to conceal small files inside a PNG image.
-------
## Description
This script allows to conceal small files inside png images, using a well known steganographic method: hide the data in the least significant bits of an image pixels.
This produces little changes to the image that usually aren't noticed by just looking at the image.
## Usage
The script usage:
```
usage: Image_Steganography.py [-h] [-e | -d] [-i IMAGE] [-f FILE] [-o OUTPUT]
Conceal small files inside a PNG image and extract them back
optional arguments:
-h, --help show this help message and exit
-e, --encode If present the script will conceal the file in the
image and produce a new encoded image
-d, --decode If present the script will decode the concealed data
in the image and produce a new file with this data
-i IMAGE, --image IMAGE
Path to an image to use for concealing or file
extraction
-f FILE, --file FILE Path to the file to conceal or to extract
-o OUTPUT, --output OUTPUT
Path where to save the encoded image. Specify only the
file name, or use .png extension; png extension will
be added automatically
```
## Example
We could encode a simple txt file like `file.txt`:
```
This script is working!!!
```
Running the script like:
```
$ python3 Image_Steganography.py -e -i resources/original.png -f resources/file.txt -o resources/encoded.png
```
The result is an encoded image which looks identical to the original:
 | 
|:---:|:---:|
| Original | Encoded |
From the encoded image we can extract the concealed file:
```
$ python3 Image_Steganography.py -d -i resources/encoded.png -f resources/file_concealed.txt
```
## Requirements
| Software | Version | Required |
| -------------- |:--------------:| --------:|
| **Python** | Either 2 or 3 | Yes |
| **Numpy** |Tested on v1.13 | Yes |
| **Pillow** |Tested on v4.3.0| Yes |
| **imageio** |Tested on v2.2.0| Yes |
## Future developements
Maybe implement a GUI.
## License
Licensed under the term of [MIT License](http://en.wikipedia.org/wiki/MIT_License). See attached file LICENSE.