Skip to content

karahanbuhan/pngme

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

pngme

Command line program that lets you hide secret messages in PNG files.

About

pngme is a Command Line Interface to modify chunks of PNG files.

pngme

Usage

Adding a message

To insert a secret message to a PNG file, run: pngme encode file.png chNk "Your message here"

chNk is the type of chunk that your message will be written on. You must use 4 ASCII Alphabetic (a-Z) characters as the type and 3rd byte (character) starting from left should be uppercase. So ruSt, heLo, pnGm are good examples. For more details about chunk types, please visit http://www.libpng.org/pub/png/spec/1.2/PNG-Structure.html

Reading a message

To read a secret message in a PNG file, run: pngme decode file.png chNk

This will print the message in the chNk if there is one.

Finding messages

To find messages, you can use pngme print file.png

This will list all the chunks so be aware. Data of the image is also in chunks and you will not be able to read them because they are not UTF-8 texts.

Removing messages

To remove message (chunk), you can use pngme remove file.png chNk

You can accidentally delete your image if you were to remove the image data chunks. Only remove the messages you created! If there is duplication of chunk types, this command will remove the first one so beware.

For help

Run the executable for help as: pngme --help

License

The MIT License

About

Command line program that lets you hide secret messages in PNG files.

Topics

Resources

License

Stars

Watchers

Forks

Languages