Skip to main content

New : Cipher Breaker, the codebreaking assistant, is now on Android Discover

▮ CipherChronicle

Image methods Steganography

Spread-spectrum watermark

Spread-spectrum watermarking borrows an idea from military radio: instead of sending a strong signal on one frequency, spread a very weak one over a wide band. Ingemar Cox and colleagues applied it to images in the mid-1990s, to stamp works with a signature able to survive manipulation. In the same decade the Patchwork method (Bender, Gruhl, Morimoto and Lu) gave a version working directly on pixels, close to the one in the workshop.

How does a spread-spectrum watermark work?

LSB entrusts each message bit to one pixel. Here each bit is entrusted to thousands of pixels at once.

  1. The key seeds a pseudo-random generator. It splits the image’s pixels into as many groups as there are bits to write, and gives every pixel a sign, + or −.
  2. To write a 1, the “+” pixels of the group are lightened by a few levels and the “−” pixels darkened. For a 0, the reverse.
  3. To read, redo the same draw and compute, for each group, the sum of the “+” pixels minus the sum of the “−” pixels.
No watermark       sum(+) − sum(−) ≈ 0     (image content cancels out)
Bit 1, strength 4  sum(+) − sum(−) ≈ +4 × number of pixels in the group
Bit 0, strength 4  sum(+) − sum(−) ≈ −4 × number of pixels in the group

The image content is unrelated to the draw, so it averages out. The watermark’s contribution adds up. The sign of the sum gives the bit.

What does a watermarked image look like?

Like the original with a very faint grain: every pixel has moved a few levels out of 255, one way or the other. At strength 4 the difference is invisible on a photo; it can just be made out on a perfectly flat area.

What are the weaknesses of a spread-spectrum watermark?

Strengths

  • Robustness: recompression, slight noise or a brightness change alter pixels one by one, but barely move a sum taken over thousands of them.
  • No location to find: without the key you know neither which pixels belong together nor which way they were pushed.
  • Every bit of the image takes part, not just the last one.

Weaknesses

  • Tiny capacity: 30 bytes in the workshop, whatever the image size. It is a signature, not a letter.
  • Fragile to geometry: cropping, rotating or resizing shifts the pixels and the draw no longer lines up.
  • Image too small or too busy: when groups are small, or the image very rough, content outweighs the watermark.

How can a watermark be recovered without the key?

Reading the message without the key means guessing one draw among an astronomical number. Detecting or erasing a watermark is more accessible: a slight blur or added noise drowns it, and comparing several images marked with the same key brings out the shared pattern (collusion attack).

What variants of watermarking exist?

  • Frequency domain — Cox’s original version alters the image’s most significant DCT coefficients, which survives compression far better.
  • Visible watermark — the semi-transparent logo of stock-photo sites: a deterrent rather than a hiding place.
  • Fragile watermark — designed, on the contrary, to break at the slightest edit, to prove an image has not been altered.
  • DCT coefficients — same ground, opposite goal: plenty of capacity, no robustness.

In CipherChronicle

The workshop writes a text of at most 30 bytes, with a strength from 1 to 10 and an optional key. It reads its own result back before returning it: if the watermark does not come through (image too small, strength too low), it says so rather than produce a mute image. Reading works on each pixel’s difference from its four neighbours, to reduce the image’s influence.

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.