2024-08-18 16:02:41 +02:00
|
|
|
# png_data -- Data as images
|
|
|
|
|
|
|
|
## png_embed -- Embed files into mostly innocent PNG
|
|
|
|
|
2024-08-18 16:06:01 +02:00
|
|
|
![Contains an embed](doc/with_embed.png)
|
|
|
|
![The embed](doc/embed.png)
|
2024-08-18 16:02:41 +02:00
|
|
|
|
|
|
|
### Current algorithm:
|
|
|
|
* `lo` Embeds data in the colors channels lowest bits.
|
|
|
|
|
|
|
|
See [examples/test.sh](examples/test.sh) for usage.
|
|
|
|
|
|
|
|
### Encoding an image
|
|
|
|
`png_embed -l lo2 -e embed.tar original.png -o output.png`
|
|
|
|
Where:
|
|
|
|
* `lo2` is the `Lo` algorithm using the 2 lowests bits
|
|
|
|
* `embed.tar` the file to embed into the final image
|
|
|
|
* `original.png` the original PNG file
|
|
|
|
* `output.png` the resulting PNG file
|
|
|
|
|
|
|
|
### Decoding an image
|
|
|
|
`png_embed -l lo2 -d image.png -o embed.tar`
|
|
|
|
Where:
|
|
|
|
* `lo2` is the `Lo` algorithm using the 2 lowests bits
|
|
|
|
* `image.png` the PNG containing an embed
|
|
|
|
* `embed.tar` the extracted embedded file
|
|
|
|
|
|
|
|
# License
|
|
|
|
|
2024-08-19 13:48:27 +02:00
|
|
|
png_data is licensed under the GNU AGPL version 3 or later. See [LICENSE.md](LICENSE.md) for more information.
|
2024-08-18 16:02:41 +02:00
|
|
|
License for third-party dependencies can be accessed via `cargo license`
|