8000 GitHub - dylduhamel/image-steganography: Image steganography in C using LSB (1, 2, 4 bits)
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

dylduhamel/image-steganography

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

23 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Fast Image Steganography in C

Overview

This program is designed for hiding and recovering messages in PPM (Portable Pixmap) image files using the Least Significant Bit (LSB) method. It manipulates the LSBs (1, 2, or 4 bits) of the image's pixels to encode and decode secret messages.

IMG_0131 IMG_0130

Components

  • hideMessage.c: Hides a message in a PPM file.
  • recoverMessage.c: Recovers a message from a PPM file.
  • ppmReadWrite.c and ppmReadWrite.h: Utilities for reading and writing PPM files.
  • getImageArgs.c and getImageArgs.h: Argument processing utilities.

Compilation and Execution

hideMessage.c

Hides a message in a PPM file.

Compilation

Compilation with make can be accomplished with

cd hideMessage/ && make

or compiled manually with

gcc -ansi -pedantic -Wall hideMessage.c -o hideMessage getImageArgs.c ppmReadWrite.c

Usage

./hideMessage -b [LSB bits] [message file] [original PPM file]
[LSB bits]: Number of LSBs to use (1, 2, or 4).
[message file]: Text file containing the message to hide.
[original PPM file]: PPM image file in which to hide the message.

recoverMessage.c

Extracts a hidden message from a PPM file. Compilation

Compilation

Compilation with make can be accomplished with

cd recoverMessage/ && make

or compiled manually with

gcc -ansi -pedantic -Wall recoverMessage.c -o recoverMessage getImageArgs.c ppmReadWrite.c

Usage

./recoverMessage -b [LSB bits] [PPM file with hidden message]
[LSB bits]: Number of LSBs used in the hidden message (1, 2, or 4).
[PPM file with hidden message]: PPM image file from which to recover the message.

Example

To hide a message:

./hide -b 2 message.txt will.ppm

To recover a message:

./recover -b 2 will_hidden.ppm

About

Image steganography in C using LSB (1, 2, 4 bits)

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 2

  •  
  •  
0