Crates.io | stegosaurust |
lib.rs | stegosaurust |
version | 0.4.6 |
source | src |
created_at | 2022-06-08 18:17:36.099445 |
updated_at | 2024-02-07 00:44:45.366208 |
description | A steganography tool, written in rust. |
homepage | https://github.com/jj-style/stegosaurust |
repository | https://github.com/jj-style/stegosaurust |
max_upload_size | |
id | 602199 |
size | 6,984,133 |
A simple image steganography tool, written in rust.
:warning: This is a program I made for fun. There is no guarantee of cryptographic security or data confidentiality. Please do not use this for sensitive information. If you do, you are doing so at your own risk. :warning:
Easily encode messages in images:
echo "text to hide" | stegosaurust enc --output encoded_image.png image.png
stegosaurust enc --decode encoded_image.png
See the examples below for more usage.
🦕 stegosaurust 0.4.6
Hide text in images, using rust.
USAGE:
stegosaurust <SUBCOMMAND>
FLAGS:
-h, --help Prints help information
-V, --version Prints version information
SUBCOMMANDS:
disguise mask all files in a directory using steganography [aliases: dsg]
encode encode files using steganography [aliases: enc]
help Prints this message or the help of the given subcommand(s)
Encoding supports a variety of options that effect how the data is encoded, including:
key
to be suppliedsequential
- encode the data pixel by pixel starting from the top leftlinear
- encode the data into pixels evenly spread out from the start to the end of all pixelslsb
) - always encode the bit of data in the least significant bit of each colour value of each pixelrsb
) - randomly encode each bit of data into one the least n
significant bits of each colour value of each pixel. Choose how large n
can be (1-4) (least significant to fourth least significant) and supply a seed
which is used to determine the bit to encode intocargo install stegosaurust
Build and install the executable from the source code.
git clone https://github.com/jj-style/stegosaurust.git
cd stegosaurust
cargo install --path .
# to uninstall :(
cargo uninstall stegosaurust
docker pull ghcr.io/jj-style/stegosaurust:master
docker run --rm -it -v $PWD:/data stegosaurust stegosaurust enc --decode /data/image.png
The examples below assume you have installed the program (see here) and are in the repository directory (if not installed use cargo run --
instead of stegosaurust
).
# how much data can we fit in an image...
stegosaurust enc --decode examples/example-2.png | mpv -
# is there something hidden in the logo on the README?
stegosaurust enc --decode .github/logo.png | xargs python -c "import webbrowser,sys; webbrowser.open(sys.argv[1])"