LSB Steganography Demo
Interactive demonstration of hiding data using 1 bit per byte (LSB) manipulation in RGB pixels
Enter Text
Message length: 15 characters = 120 bits
Capacity Calculator
Current Example:
- Message: "michaelstout.ai" (15 chars)
- Bits needed: 120
- Pixels used: 40
- Capacity used: 0% per pixel
How LSB Works
LSB steganography hides data by modifying only the rightmost bit of each RGB channel.
First Pixel from "michaelstout.ai" ('m'):
Encode a message to see LSB example
- Each pixel = 3 channels (R, G, B)
- 1 bit hidden per channel
- 3 bits stored per pixel
- Color change: ±1 max (invisible)
Visual Impact
RGB LSB changes are invisible because:
- Minimal color shift: ±1 in RGB values (0-255 range)
- Human perception: Cannot detect such small changes
- Natural variation: Normal image noise exceeds LSB changes
- Example:(018,110,216) → (019,111,217)
Detection Methods
LSB steganography can be detected by:
- Statistical analysis: Chi-square tests
- Histogram analysis: Unusual bit patterns
- Visual analysis: Noise in smooth areas
- File size: Larger than expected
Educational Purpose Only
This demonstration is for educational purposes to understand LSB steganography concepts. Real-world implementations require additional considerations for security and robustness.