πΌοΈ Image Steganography Tool
A Python-based image steganography application that hides secret data within images using two different techniques: MSB-based image hiding and LSB-based text encoding.
π― Overview
Image steganography is the art of hiding information within images without noticeably altering their appearance. This project implements two distinct approaches:
Image-in-Image Hiding: Conceals one image within another using MSB (Most Significant Bit) technique
Text-in-Image Hiding: Embeds secret text messages using LSB (Least Significant Bit) technique
β¨ Features
π Image-in-Image Steganography
β
Hides one image inside another of the same dimensions
β
Uses 4 MSBs from both images for seamless blending
β
Produces a single encrypted image containing both images
β
Basic decryption with random bit padding
π Text-in-Image Steganography
β
Encodes text messages into image pixels
β
Uses LSB technique for minimal visual impact
β
Automatic capacity calculation
β
Stop sequence for reliable decoding
β
Support for various data types (strings, bytes, integers)
π‘οΈ Security Features
β
Visual imperceptibility
β
Data integrity validation
β
Automatic stopping criteria
β
Error handling for insufficient capacity
π§ Techniques
Technique 1: MSB-based Image Hiding
Method: Combines 4 MSBs from both source and secret images
Output: Single image containing both images
Usage: encrypt() and decrypt() functions
Best For: Hiding images within images
Technique 2: LSB-based Text Hiding
Method: Replaces least significant bits of RGB values with secret data
Output: Encoded image with hidden text
Usage: encode() and decode() functions
Best For: Hiding text messages within images