Skip to content

redX000/CryptoStego

Folders and files

NameName
Last commit message
Last commit date

Latest commit

Β 

History

1 Commit
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 

Repository files navigation

πŸ” CryptoStego

Python License Platform

Steganography Toolkit β€” Hide secret messages and files inside images using LSB encoding with optional XOR encryption.

πŸ”₯ Features

  • πŸ–ΌοΈ 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

πŸš€ Installation

```bash git clone https://github.com/redX000/CryptoStego.git cd CryptoStego pip install -e .

For PNG/JPEG support:

pip install Pillow ```

πŸ“– Usage

Hide a message

```bash cryptostego hide cover.bmp -m "Secret message here" -o stego.bmp cryptostego hide photo.png -m "Encrypted!" -p mypassword -o output.png ```

Hide a file

```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 ```

Check capacity

```bash cryptostego capacity image.bmp ```

Analyze image

```bash cryptostego analyze suspicious_image.png ```

🧠 How It Works

  1. Encoding: Each bit of the secret payload replaces the LSB of each pixel byte
  2. Header: A 12-byte header (magic + flags + length) precedes the payload
  3. Encryption: Optional XOR cipher with SHA-256 derived key
  4. Detection: Statistical analysis of LSB distribution reveals anomalies

⚠️ Disclaimer

For educational and authorized use only. The author is not responsible for any misuse.

πŸ“„ License

MIT License β€” see LICENSE

πŸ‘€ Author

Yassine Lasraoui β€” @redX000

About

πŸ” Steganography Toolkit β€” Hide secret data inside images with LSB encoding and XOR encryption

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages