Skip to content

Hide secret messages and executables in PNG files

Notifications You must be signed in to change notification settings

DanielKirshner/PNGidden

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

29 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Steganography - PNGidden

Hide text messages in PNG files using the LSB – least significant bit.

In this way, we change the lowest bits in the image to be our message – and we’ll have an almost imperceptible change on the actual way the image looks.

PNG file structure

First 8 bytes:

89 50 4E 47 0D 0A 1A 0A               |   PNG File Signature

Last 12 bytes:

00 00 00 00 49 45 4e 44 ae 42 60 82   |   ....IEND.B`.|

File Chunks

IHDR = Header

PLTE = Palette Table

IDAT = Image Data (Pixels)

IEND = End of file

Setup & Requirements

  • Install python 3.10.0 or upper from here

  • Make sure your version is 3.10.0 or upper

python --version
  • Install pip prerequisites
pip install -r requirements.txt
  • You can also run my setup file to verify everything works:
python setup.py

Usage

  • Windows 10/11:
python PNGidden.py
  • Linux or Mac OS:
python3 PNGidden.py

© 2022 Daniel Kirshner. All rights reserved.

About

Hide secret messages and executables in PNG files

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages