Genstego: Image Steganography Based on a Genetic Algorithm
genstego is an image steganography package based on deap. It is able to
embed/decode secret images into/from a host image. The main idea of
is to model steganography as a search and optimization problem using genetic
The genetic algorithm allows finding an optimal stochastic solution. Therefore,
making the steganalysis more complex. Also,
genstego provides a set of
different optimal solutions in the last generation.
At this moment,
genstego only use grayscale images as host and stego
messages. But, it can be modified to use color images, or to hide different
formats like text messages, sound files, etc…
You can find a Spanish version of this README here.
genstego use the following packages:
numpy, PIL, matplotlib, deap
It is easily installed by
pip install <package>
genstego.py there are two required arguments:
-s. First one is the path to the host image and second to the secret image.
usage: genstego.py [-h] -ht HOST -s SECRET [-g GENERATIONS] [-p POPULATION] [-c CROSSOVER] [-m MUTATION]
python genstego. py -ht img/lenna-256.ppm -s img/grumpy-115.png -g 300 -p 200
It can also be imported into other programs. The main methods are:
genstego.embed() embeds a secret message. And,