Command line program that lets you hide secret messages in PNG files.
pngme is a Command Line Interface to modify chunks of PNG files.
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
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.
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.
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.
Run the executable for help as: pngme --help