seagul

Crates.ioseagul
lib.rsseagul
version0.2.0
sourcesrc
created_at2021-06-01 00:54:48.574122
updated_at2021-06-02 12:52:21.621788
descriptionA CLI utility to encode (and decode) arbitrary information into images
homepagehttps://github.com/sixpounder/seagul
repositoryhttps://github.com/sixpounder/seagul
max_upload_size
id404537
size27,889
Andrea Coronese (sixpounder)

documentation

README

Seagul

This command line utility encodes and decodes arbitrary information in images.

Installing

The easiest way to install is through cargo

cargo install seagul

Encoding

Passing data inline

seagul encode -d "Super secret message" path/to/source/image path/to/output/image

Getting data through STDIN

cat my_secret_file | seagul encode path/to/source/image path/to/output/image

Outputting to STDOUT (omit the target image)

seagul encode -d "Super secret message" path/to/source/image

The default channel used for encoding is the blue channel. To change it, use the --channel option.

seagul encode -d "Super secret message" --channel green path/to/source/image

For more encode options, see the integrated help with seagul encode --help

Decoding

The decoder supports the same options as the encoder, with the addition of a --marker option to stop decoding when the specified byte sequence is found.

seagul decode path/to/image

# Stop at "end of sentence." sequence.
seagul decode --marker "end of sentence." path/to/image
Commit count: 24

cargo fmt