Documentation
LSB (Least Significant Bit)
Fast but basic steganography using Least Significant Bit substitution.
LSB (Least Significant Bit)
LSB (Least Significant Bit) substitution is the most straightforward and fastest method for hiding data inside images.
How it works
LSB embedding works by replacing the least significant bits of pixel color values in the cover image with the bits of the secret payload. Because only the lowest bits are modified, the changes to the image's appearance are generally imperceptible to the human eye.
Trade-offs
- Speed: Very fast, making it ideal for large payloads or lower-powered devices.
- Capacity: High capacity, as you can embed data in almost every pixel.
- Stealth: Low security. LSB is highly vulnerable to statistical steganalysis (such as RS Analysis or Chi-Square tests). It leaves predictable patterns that can be detected easily by automated tools.
Use cases
Use LSB when performance is the primary concern and resisting rigorous steganalysis is not required.