Giter Site home page Giter Site logo

piss's Introduction

PISS

Rust Crates Docs Codecov License

PISS (Picture Secret Steganography) is a command line tool to encode/decode secrets into/from image files using LSB steganography.

Run piss --help for usage.

Installation

cargo install piss

Usage examples

Encode a secret into an image

piss encode samples/the-matrix.jpg samples/secret.txt samples/the-matrix-reloaded.png

Original image:

alt text

Image with secret:

alt text

Recover secret from image:

piss decode samples/the-matrix-reloaded.png samples/secret-reloaded.txt

Miscelaneous

By default, PISS uses 2 bits per image byte to encode the secret, you can change this value if desired:

piss -b 4 encode samples/the-matrix.jpg samples/secret.txt samples/the-matrix-reloaded.png

Just remember to decode using the same number of bits, otherwise the output will be garbage:

piss -b 4 decode samples/the-matrix-reloaded.png samples/secret-reloaded.txt

Important note

It is not recommended to encode secrets and save the output as .jpg as compression is performed and the secret is lost.

Features

Supports from 1 to 8 bits secret encoding

The user can specify the number of bits of the secret to use per image byte

Change between image formats

It is possible to convert the image format during encoding, just set a different extension for the output.

Contributing

If you find a vulnerability, bug or would like a new feature, open a new issue.

To introduce your changes into the codebase, submit a Pull Request.

Many thanks!

License

PISS is distributed under the terms of both the MIT license and the Apache License (Version 2.0).

See LICENSE-APACHE and LICENSE-MIT, and COPYRIGHT for details.

piss's People

Contributors

c0dearm 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.