Steganography Toolkit β Hide secret messages and files inside images using LSB encoding with optional XOR encryption.
- πΌοΈ LSB Steganography β Hide data in the least significant bits of image pixels
- π XOR Encryption β Optional password-based encryption with SHA-256 key stretching
- π Stego Analysis β Detect hidden data via LSB statistical analysis
- π File Embedding β Hide any file type (documents, archives, executables)
- π― BMP Native Support β Zero dependencies for BMP images
- πΌοΈ PNG/JPEG Support β Via optional Pillow dependency
- πΎ Capacity Calculator β Check how much data an image can hold
```bash git clone https://github.com/redX000/CryptoStego.git cd CryptoStego pip install -e .
pip install Pillow ```
```bash cryptostego hide cover.bmp -m "Secret message here" -o stego.bmp cryptostego hide photo.png -m "Encrypted!" -p mypassword -o output.png ```
```bash cryptostego hide cover.bmp -f secret.zip -o stego.bmp cryptostego hide cover.png -f passwords.txt -p strongpass -o output.png ```
Extract hidden data
```bash cryptostego extract stego.bmp cryptostego extract stego.bmp -p mypassword cryptostego extract stego.bmp -o extracted_file.zip ```
```bash cryptostego capacity image.bmp ```
```bash cryptostego analyze suspicious_image.png ```
- Encoding: Each bit of the secret payload replaces the LSB of each pixel byte
- Header: A 12-byte header (magic + flags + length) precedes the payload
- Encryption: Optional XOR cipher with SHA-256 derived key
- Detection: Statistical analysis of LSB distribution reveals anomalies
For educational and authorized use only. The author is not responsible for any misuse.
MIT License β see LICENSE
Yassine Lasraoui β @redX000