Chapter 12 of 22 Part III: Trust, Cryptography & Security

Secrets Hidden in Plain Sight

Difficulty: Intermediate Editorial estimate: ~45 min Prerequisites: Chapter 01, Chapter 11

Chapter Field Guide

Measurable Learning Outcomes

  • Explain how modifying the least-significant bit of RGB channels changes pixel color by at most 1 out of 255.
  • Calculate the maximum byte capacity of a lossless RGB image for 1-bit LSB embedding.
  • Distinguish steganography (hiding existence) from cryptography (hiding meaning).

Core Scientific Intuition

Each pixel in a 24-bit RGB image uses three 8-bit channels (Red, Green, Blue, 0–255). Changing the lowest bit (the 1s place) shifts brightness by at most 1/255, invisible to human vision. Three bits per pixel let you hide 3/8 of a byte per pixel, provided the image is saved in a lossless format like PNG.

Capacity (bytes) = floor((width × height × 3) / 8)
In plain words: Maximum 1-bit LSB payload in bytes equals width times height times 3 color channels divided by 8 bits per byte.
Units & assumptions: Applies to lossless 24-bit RGB images (e.g., PNG). Lossy JPEG compression destroys LSB payloads.

Worked Example

A 100×100 pixel RGB PNG has 30,000 color channels, giving floor(30,000 / 8) = 3,750 bytes of raw 1-bit LSB capacity before headers or length markers.

Hands-On Exploration

Interactive Laboratory

Test the concepts directly with 3 interactive panels, live controls, and visual feedback.

Open Interactive Lab →

Three Guided Projects

Structured experiments with hypotheses, boundary tests, hints, and reflection prompts.

View 3 Projects →

Source Code (3 Snippets)

Inspect byte-identical printed JavaScript blocks, download `.js` files, or test runnable blocks in the isolated sandbox.

Browse Code →

Self-Check Quiz (5 Questions)

Immediate explanations for every choice, unlimited retries, and local-only score tracking.

Take Self-Check Quiz →

Book Chapter Outline (Reference Guide)

Section headings from Volume 1 for cross-referencing with the printed book.

Show all 34 book section headings
  1. The mystery of the twin photographs
  2. PEOPLE BEHIND THE SCIENCE
  3. Johannes Trithemius (1462-1516)
  4. Gustavus Simmons (born 1930)
  5. A brief history of hiding information
  6. Three different ideas
  7. What a computer sees in a photograph
  8. A tiny coordinate system
  9. The smallest place in a binary number
  10. The parity connection
  11. Eight tiny clues, one letter
  12. How much room is there?
  13. Why an edited picture may lose its clue
  14. What about hidden information in sound?
  15. Put your name on your own art
  16. The mathematics of translucent marks
  17. A slider is really a parameter
  18. Project 1: the pixel detective
  19. Read the code
  20. Project 2: read the science-fair clue
  21. Read the code
  22. Project 3: mix a watermark color
  23. Read the code
  24. Your picture laboratory
  25. Experiment A: compare the neighbors
  26. Experiment B: test the clue
  27. Experiment C: sign a picture
  28. The case of the two mountain pictures
  29. Your mission
  30. When the picture tells the wrong story
  31. Invent: an art exhibition
  32. Invent: a fragile clue detector
  33. Words to keep and sources to explore
  34. Sources and image credits

Primary Sources & Further Reading

External links are provided for independent verification and deeper study. Link availability can change over time; see the Resources page for verification notes.