Giter Site home page Giter Site logo

pngme's Introduction

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.

I did not come up with the idea for this program but picklenerd did. This is my implementation of the book for learning purposes as a toy project, feel free to use or send pull requests!

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 kaRa, 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 of 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 would remove image data chunks. Only remove the messages you created! If there is duplication of chunk types, this command will remove the first one.

I don't understand, please help me!

Run the executable for help as: pngme --help

License

The MIT License

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.