GithubHelp home page GithubHelp logo

labellson / genstego Goto Github PK

View Code? Open in Web Editor NEW
11.0 3.0 4.0 8.1 MB

An image steganography with high embedding capacity based on a genetic algorithm

License: GNU General Public License v3.0

Python 100.00%
steganography genetic-algorithm stego artificial-intelligence security cibersecurity

genstego's Introduction

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 genstego, is to model steganography as a search and optimization problem using genetic algorithms.

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.

Requirements

Run in Python 3.

genstego use the following packages: numpy, PIL, matplotlib, deap

It is easily installed by pip

pip install <package>

Usage

To run genstego.py there are two required arguments: -ht and -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]

Usage example:

python genstego. py -ht img/lenna-256.ppm -s img/grumpy-115.png -g 300 -p 200

As a python package

It can also be imported into other programs. The main methods are: genstego.embed() embeds a secret message. And, genstego.decode() decodes secret messages.

genstego's People

Contributors

labellson avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.