A secure steganography tool combining AES-based encryption with LSB (Least Significant Bit) image manipulation.
Invisible Ink is a Python-based CLI tool designed to hide sensitive text messages inside PNG images.
Unlike traditional steganography tools that simply hide plain text, Invisible Ink focuses on security:
- Encrypt-then-Hide: The message is encrypted before being embedded.
- LSB Steganography: Encrypted bits are hidden in the least significant bits of the image pixels.
- Passphrase-Based Access: Hidden data can only be recovered with the correct password.
Use it for secure communication, watermarking, or learning the fundamentals of cybersecurity and image processing.
- 🔒 Symmetric encryption (Fernet / AES-based)
- 🖼️ LSB steganography on lossless PNG files
- 🔑 Password-protected message extraction
- 💻 Simple CLI interface
- 📚 Great for cybersecurity learning
- Python 3.8+
- pip
-
Clone the repository
git clone https://github.com/osmankaankars/Invisible-Ink.git cd Invisible-Ink -
Create and activate a virtual environment
python3 -m venv venv source venv/bin/activate # Windows: venv\Scripts\activate
-
Install dependencies
pip install -r requirements.txt
python invisible_ink.py hide -i input.png -o output.png -m "This is a top secret message!"You will be prompted for a password.
The tool will encrypt the message and embed it into the output image.
python invisible_ink.py reveal -i output.pngEnter the same password used during encryption.
If correct, the decrypted message will be printed.
-i, --input: Input PNG file-o, --output: Output PNG file-m, --message: Message to hide
-i, --input: Image containing hidden data
- Uses Fernet (AES-128 + HMAC-SHA256)
- Password → SHA-256 hash → URL-safe key
- Based on Pillow (PIL)
- Reads and modifies pixel arrays
- Converts encrypted payload to binary
- Embeds bits into LSB of the Red channel of each pixel
- Works only with lossless formats (PNG)
This tool is for educational, research, and ethical security use only.
The author is not responsible for misuse.
Osman Kaan Kars
Cybersecurity Engineer | SAP Security Specialist
- GitHub: https://github.com/osmankaankars
- LinkedIn: https://www.linkedin.com/in/osman-kaan-kars/