Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/obviouslynotraffa/aegis
A CLI tool for hiding and revealing messages in images using least significant bit steganography
https://github.com/obviouslynotraffa/aegis
cli rust-lang steganography
Last synced: 21 days ago
JSON representation
A CLI tool for hiding and revealing messages in images using least significant bit steganography
- Host: GitHub
- URL: https://github.com/obviouslynotraffa/aegis
- Owner: obviouslynotraffa
- Created: 2024-11-04T21:52:11.000Z (about 2 months ago)
- Default Branch: main
- Last Pushed: 2024-11-29T19:38:36.000Z (29 days ago)
- Last Synced: 2024-11-29T20:26:52.786Z (29 days ago)
- Topics: cli, rust-lang, steganography
- Language: Rust
- Homepage:
- Size: 870 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Aegis
Aegis is a CLI tool written in Rust that enables encryption and decryption of text from an image, using least significant bit [Steganography](https://en.wikipedia.org/wiki/Steganography).
In this technique, each byte of the secret message is embedded into the image by replacing the least significant bit of the pixel values with the bits of the message. In this case, the LSB of the red, green, blue and alpha channels in pixel is used to hide four bits of the message. As a result, the image looks visually unchanged, but it can contain hidden information that can be extracted later.
## Showcase
Before | After
:-------------------------:|:-------------------------:
![](imgs/original_image.png) | ![](imgs/modified_image.png)## Usage
### Encoding
To encode a message in an image, run the following command:
```
cargo run -- -e
```
- ``: the path to the image where the message will be hidden
- ``: the path where the encoded image will be saved
- ``: the message you want to hide### Decoding
To decode a hidden message from an image, run the following command:
```
cargo run -- -d
```
- ``: the path to the image that contains the hidden message