Image methods Visual illusion
Low contrast
Low contrast is the image version of invisible ink: the message is there for all to see, written in a tint the eye cannot tell from the background. It is also the old trick of white text on a white web page, and a staple of CTF challenges.
How does low-contrast hiding work?
Pick a background tint, then trace the drawing in a neighbouring tint, only a few levels away.
Background (244, 244, 244)
Drawing (242, 242, 242) difference: 2 levels out of 255, under 1% A trained eye, in good conditions, can tell differences of about 1 to 2% over large areas. On an ordinary screen at ordinary brightness, two levels of difference pass for a flat colour.
To reveal the drawing, stretch the levels: the smallest value present in the image becomes 0, the largest 255.
242 → 0 (black)
244 → 255 (white) The two neighbouring tints have become black and white.
What does the image look like?
A plain rectangle: off-white, mid-grey or near-black depending on the background chosen. Nothing suggests there is anything in it, except that the image is oddly empty.
What are the weaknesses of low contrast?
Strengths
- No special tool: any image editor, even a phone’s contrast slider, reads the message.
- Passed on by word of mouth: “push the contrast” is the whole key.
- Survives printing if the difference is large enough, and then shows under grazing light or on a photocopy.
Weaknesses
- No security: the hiding place relies on nobody thinking of it.
- Revealed by accident: a badly calibrated screen, a viewing angle on a cheap panel or a “high contrast” mode is enough.
- Lossy compression may smooth out a difference of one or two levels; beyond four or five it usually gets through.
- A plain image draws attention: better to slip the area into a larger picture.
How can the drawing be recovered without the key?
There is no key. Any of three moves will do: the Levels or Curves tool of an image editor; the paint bucket with zero tolerance, which fills only one of the two tints; or the image histogram, where two neighbouring peaks betray two tints where one was expected.
What variants of low contrast exist?
- On one channel — the difference is only in blue, to which the eye is least sensitive.
- Inside a photo — the drawing is added, heavily attenuated, in a dark or light area of a real image.
- Bit plane — the limiting case: a difference of a single level, held in the least significant bit.
- Red filter — same spirit, but the developer is a coloured filter.
In CipherChronicle
In the workshop the starting image is the drawing: everything dark becomes the trace, everything light the background (threshold at mid-brightness). You set the tint difference (1 to 12) and the background (light, dark or grey). Decryption stretches the levels, and works on any under-contrasted image, not only those from the workshop.
Demonstration
The CipherChronicle artwork is encrypted then decrypted right here, in your browser, with the same engine as the workbench. Drag the bar to compare.