Implements LSB steganography for PNG image files in rust-lang.
Aims for compatibility to the Stegano for windows version
In short, the art of hiding information in something (like a book, a image, a audio or even a video). Read more on wikipedia.
To install the stegano cli, you just need to run
bash
cargo install --force stegano-cli
(--force just makes it update to the latest stegano-cli
if it's already installed)
Note the binary is called stegano
(without -cli
)
to verify if the installation went thru, you can run which stegano
that should output similar to
sh
$HOME/.cargo/bin/stegano
Let's assume we want to hide data of a file called README.md
, into an image called HelloWorld.png
, based on a image called resources/with_attachment/Blah.txt.png
. So we would run:
sh
stegano hide \
--data README.md \
--in resources/Base.png \
--out README.png
The final result is then contained in the image README.png
.
Pro TIP you can hide multiple files at once
here I'm using the shorthand parameters (--data, -d), (--in, -i), (--out, -o)
sh
stegano hide \
-i resources/Base.png \
-d resources/secrets/Blah.txt \
resources/secrets/Blah-2.txt \
-o secret.png
Hidden Feature you can use a .jpg
for input and save it as .png
sh
stegano hide \
-i resources/NoSecret.jpg \
-d resources/secrets/Blah.txt \
-o secret.png
Now let's assume we want to hide just a little text message in secret-text.png
. So we would run:
sh
stegano hide \
-i resources/NoSecrets.jpg \
-m 'This is a super secret message' \
-o secret-text.png
Let's unveil the README.md
that we've hidden just above in README.png
sh
stegano unveil \
--in README.png \
--out ./
Now let's unveil the message from above secret-text.png
. So we would run:
```sh stegano unveil \ -i secret-text.png \ -o message
cat message/secret-message.txt This is a super secret message ```
Let's unveil the raw data of the README.md
that we've hidden just above in README.png
sh
stegano unveil-raw \
--in README.png \
--out README.bin
The file README.bin
contains all raw data unfiltered decoded by the LSB decoding algorithm. That is for the curious people, and not so much interesting.