Skip to content

Commit

Permalink
images
Browse files Browse the repository at this point in the history
  • Loading branch information
enrichman committed Oct 19, 2022
1 parent 55eaa27 commit b8e0272
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 2 deletions.
10 changes: 8 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,9 +7,15 @@ The partial keys can also be hidden inside images, adding an additional layer of

## How does it work?

An input file (or message) will be encrypted using AES-256 with a crypto secure random 32 bit key. This key will be then splitted in `p` parts. A `t` threshold of number o partial keys is needed to recover the original key, and decrypt the secret.
An input file (or message) will be encrypted using AES-256 with a crypto secure random 32 bit key. This key will be then splitted in `p` parts with SSS (Shamir's Secret Sharing).
A `t` threshold of partial keys is needed to recover the original key, and decrypt the secret.

![IMG](doc/assets/stego1.png)

For example, having 5 `parts` with a `threshold` of 3 will split the `master-key` in 5 pieces. These pieces will be also hidden inside 5 images. To reconstruct the original master key at least 3 partial keys and/or images are needed.

![IMG](doc/assets/stego4.png)

For example, having 5 `parts` with a `threshold` of 3 will split the `master-key` in 5 pieces. These pieces will be also hidden inside 5 images. To reconstruct the original master key at least 3 partial keys are needed.

```
stego encrypt --file file.txt --parts 5 --threshold 3
Expand Down
Binary file added doc/assets/stego1.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added doc/assets/stego4.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.

0 comments on commit b8e0272

Please sign in to comment.