Tuxia Learn · ~7 min read
The previous article introduced two schools of digital steganography. LSB is the famous one — when books and papers say "image steganography", this is usually what they mean. Here we take it apart: exactly what it changes in an image, how much it can hold, and why one round of compression ruins it.
An image is a grid of pixels. Each pixel has red, green and blue channels, and each channel is a number from 0 to 255. A pixel like (214, 105, 67) is, in binary, 11010110, 01101001, 01000011. To your eyes it's a picture; to the computer it's millions of these numbers — and LSB works its magic on the last bit of each one.
The final bit of a byte is the Least Significant Bit (LSB). Flipping it changes the channel value by at most 1 — 214 becomes 215, a difference of 0.4% across 255 levels, far below what the eye can notice. Slip one bit of secret data into each of these bits and the picture looks identical, while the data has quietly moved in.
The letter A is code 65, in binary 01000001 — eight bits. Take eight channel values and replace their last bits with these eight, in order:
01000001 — that's A.An image has hundreds of thousands of channels, and a whole file gets assembled bit by bit this way. Real tools also hide a small header first (data length, checksums) so the extractor knows how many bits to read and what format to expect.
Each pixel offers 3 channels × 1 bit, so capacity is easy: bytes you can hide ≈ pixels × 3 ÷ 8. A 1920×1080 image has about 2.07 million pixels, giving a theoretical ceiling around 760KB — minus headers and checksums, less in practice. That's LSB's ceiling: great for text and small images, nowhere near enough for video or large files.
Amusingly, Tuxia's append-style method fears re-processing too — just in a different place: append-style fears the file being re-encoded and its tail cut off; LSB fears pixel values being changed. If a channel modifies the image at all, both lose — hence this site's endless "send the original" reminders.
Yes. The last bits of a natural photo have their own statistical profile, and writing lots of data sequentially disturbs it. Classic methods like chi-square and RS analysis exist precisely to spot that disturbance. LSB is "hidden deep", not "undetectable" — it is equally unsuited to facing professional analysis.
Different goals. Tuxia exists to share files conveniently — files that are routinely several or dozens of megabytes, two orders of magnitude beyond LSB's capacity. And since real-world sending channels are chaotic and both methods fear re-processing anyway, Tuxia picked the approach with large capacity, simple implementation and predictable behavior, then added strong encryption (PBKDF2 + AES-256-GCM) for safety. LSB keeps its own home turf: tiny payloads, lossless chains, teaching and research.
Try Tuxia → Back: the two schools of steganography →
Related: Step-by-step tutorial · FAQ