Git Product home page Git Product logo

secretpng's Introduction

secretpng

img

Secretpng is a small, PNG encoder/decoder, cli tool that can "hide" messages inside a file without changing, in any way, how the image is read or displayed by common viewers.

This is a toy project made to play with Rust and, of course, learn more about it and it's development cycle, so, why not make a fun CLI!

And yes, this crab image does have a message inside it :P

Installing

Install through cargo with

cargo install --branch main --git https://github.com/gabrielvictorcf/secretpng secretpng

Usage

Every command takes a path to a png file and, probably, a chunk_type argument which is a utf-8 string of length 4. Here's what's available:

# Encode - encode any utf-8 message and optionally save in an output file
secretpng encode <image_path> <chunk_type> <message> -out_file # secretpng encode crab.png ruSt secretmsg

# Decode - find the message hidden in the chunk of chunk_type
secretpng decode <img_path> <chunk_type> # secretpng decode crab.png ruSt

# Remove - remove the chunk with chunk_type from the image
secretpng remove <img_path> <chunk_type> # secretpng remove crab.png ruSt

# Print - print all chunks in an image, data is truncated to 60 for better visibility
secretpng print <img_path> # secretpng print crab.png

secretpng's People

Contributors

gabrielvictorcf avatar

Watchers

 avatar

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.