28 lines
663 B
Markdown
28 lines
663 B
Markdown
|
# picsg
|
||
|
|
||
|
A tool for steganographing information in a picture encoded using the Vernam
|
||
|
cipher.
|
||
|
|
||
|
## Synopsis
|
||
|
|
||
|
```sh
|
||
|
picsg [subcommand]
|
||
|
```
|
||
|
|
||
|
where subcommand is one of the following:
|
||
|
|
||
|
- `encode <text> <output-path> [--img <image-path>]`
|
||
|
- `encode file <file-path> <output-path> [--img <image-path>]`
|
||
|
- `decode [--img] <encoded-path> <key-path> <output-path>`
|
||
|
|
||
|
## Examples
|
||
|
|
||
|
- Encode text using the Vernam cipher to the file `hello.enc` and create a file
|
||
|
`hello.enc.key` with a key to decode the `hello.enc` file.
|
||
|
|
||
|
`picsg encode "ABC" hello.enc`
|
||
|
|
||
|
- Decode the `hello.enc` file using key and print to the standard output
|
||
|
|
||
|
`picsg decode hello.enc hello.enc.key -`
|