Code Monkey home page Code Monkey logo

pngu's Introduction

pngu

Stuff a secret message into your PNG files

How to use it

The project can be used with cargo.

To hide a message in an image use the encode subcommand and pass in a --message and an --input file. An --output can be optionally specified

$ cargo run -- encode --input "funny-image.png" --message "Let's meet later and discuss our secret plans" --output "inconspicuous-funny-image.png"

Optionally the --use-web or -w flag can be used in place of the --input switch to download a random image from Imgur. CAUTION as this can contain NSFW images.

To retrieve a message from an encoded image, use the decode subcommand and pass in the --image

$ cargo run -- decode --input "inconspicuous-funny-image.png"  
Let's meet later and discuss our secret plans 

Demo

demo.mp4

How it works

PNG files are composed of chunks, most of which contain information about the image or actual image data. There are chunks in the PNG standard that allow for text strings to be stored as metadata in the image. pngu will create one of those text chunks with your message hidden inside.

Limitations

Right now the message is in plaintext, anyone with a hex editor can see the tEXt chunk containing your message. The plan is to add a method to encrypt the message with someone else's public key before storing it in the chunk. In any case, I am not a security pro and this should not be used to try and evade any serious scrutiny.

Some services, such as facebook messenger, strip out image metadata to save bandwidth and storage space. This tool is completely useless in cases like this.

pngu's People

Contributors

joeperri95 avatar

Stargazers

 avatar  avatar  avatar

Watchers

 avatar  avatar

pngu's Issues

Todo

  • Create a tutorial and improve the README
  • Add optional cryptography to the messages
  • Make a better imgur downloader, possibly based on popular images or a search topic
  • Make it rustier
  • Add a UI

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.