A JPEG that looks like the iPhone wrote it
Stecho hides a message in the numbers of a JPEG, so the file has to arrive untouched and must not stand out. What Messages does to a photo before delivering it, and how I chose the file.
Stecho hides a voice note by changing some of the numbers a JPEG is made of. So the file has to arrive with every one of them intact, and it shouldn’t stand out among the photos an iPhone sends anyway. Neither was a given.
The first send arrived empty
On 1 November I sent a Stecho photo from an iPhone 12 mini (iOS 26.7.2) to an iPhone 15 Pro (iOS 27.2). The photo arrived; the message didn’t. 383 380 bytes went out, 329 166 came in: coarser quantisation tables, a different colour profile, 7.4 % of the brightness coefficients changed.
It wasn’t the size (640 to 2048 px, all re-encoded), my code (an April build failed the same way), the low-quality-preview setting (off on both phones) or the receiver: the sender’s own Mac stored the same re-encoded bytes.
The colour profile decides
The received tables equal what Apple’s image library writes at quality 0.75–0.78 when it prepares an image for sharing, together with the “Apple Wide Color Sharing Profile”. Over 39 sends, files pasted by hand with no Stecho code among them, photos tagged Display P3 (the profile my iPhone 15 Pro puts on its photos) were re-encoded every time; files tagged sRGB, untagged or already in the sharing profile went through byte for byte, at any size and quality.
Decision: Stecho writes every photo in the sharing profile. Then 8 sends of 8 arrived intact, in both directions, text and voice. That is two phones, one pair of accounts and Wi-Fi; Apple documents none of it. The general rule is in the entry on iMessage.
The container gave the app away
Apple’s encoder can’t be told which numbers to write, so Stecho wrote its files with an open-source JPEG library, and on all 26 test photos its layout differed from Apple’s: segment order, merged tables, custom compression tables, no restart markers. A structure dump said “not an iPhone” in the first kilobyte.
Decision: Stecho’s own writer copies the header Apple’s encoder produced, byte for byte, and re-codes only the numbers. With nothing hidden, the output equals the input on 20 of 26 test photos; the other six are thumbnails Stecho never sends.
Apple rounds two ways
SI-UNIWARD, Stecho’s embedding method, needs every number before rounding, so Stecho quantises the photo itself. Apple’s encoder rounds negative values to the nearest whole number, but positive ones up only from three quarters, and only for some sources. That leaves a trace anyone can count: coefficients equal to +1 against those equal to −1, about 1.0 with plain rounding and 0.68 to 0.75 with Apple’s. My first encoder wrote Apple’s header with a ratio of 1.
Decision: the encoder detects Apple’s rule for each photo and follows it. On five of my photos 97.5–98.5 % of the brightness coefficients then equal Apple’s, the size is within 0.1 % and the ratio matches. That was measured on a Mac: the iPhone simulator rounds everything to nearest, so anything about the file is now measured on phones.
It was not close enough. On 7 and 8 November a trained detector told that file from Apple’s own JPEG of the same picture at AUC 0.76, and a test with no training at 0.87, on my iPhone photos, with a message or without one.
Decision: Stecho now keeps Apple’s own JPEG, byte for byte, and writes the message into it; its own rounding is used only to estimate where a change costs least. In the beta since build 1.0 (4). What the detectors say about it.
What still shows
- Quality 0.85 tables, sides in multiples of 16 px, almost no camera data.
- Messages marks a photo the extension inserts “From Stecho”; with “Copy instead of send” you paste it yourself.
- Whether the changed numbers show statistically: separate measurements.
None of this says what is inside. Together it says an app made the photo.