Git Product home page Git Product logo

imagesteganography's Introduction

imagesteganography

This code defines a class called "Steganography" which has methods to encrypt and decrypt data using AES encryption, compress and decompress data using gzip, merge two images by hiding a message in the first image using least significant bit (LSB) steganography, and unmerge an image to reveal the hidden message.

The code also defines a function called "generate_key" which generates a random encryption key using Fernet.

The "main" function defines an argument parser using the "argparse" library, which allows the user to either merge two images and hide a message in the first image, or unmerge an image and reveal the hidden message.

If the "merge" command is chosen, the program prompts the user to enter the message they want to hide, encrypts the message using AES encryption and the randomly generated encryption key, and then hides the encrypted message in the first image using LSB steganography. The second image is then merged with the steganographic image and the resulting merged image is saved to the output path specified by the user.

If the "extract" command is chosen, the program loads the input image specified by the user, extracts the steganographic data using LSB steganography, decrypts the steganographic data using the encryption key generated by the "generate_key" function, and writes the decrypted data to the output path specified by the user.

Overall, this code provides a simple implementation of steganography using image manipulation and encryption techniques.

imagesteganography's People

Contributors

jish123k avatar

Watchers

 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.