STEG - Hiding and Revealing a Picture (Lesson)

APCompSci_LessonTopBanner.png

Hiding and Revealing a Picture

Introduction

Steganography is the art of hiding information in plain sight. If a person wants to hide information, it’s a good idea to remove parts of the algorithm that are predictable. If the secret image can be smaller than the source image, the position where the secret image is hidden within the source image could be selected at random. We will explore the algorithm in this lab.

arch image and beach image

 

Check Your Understanding

Consider how the code for each of the implemented methods would need to change to allow a smaller image to be hidden in a larger image at a random location.


Record the answer to the following question on a sheet of paper. You will need the answer to complete the Lab Check Quiz.


12. How could the hiding algorithm be altered so the revealed image is more like the original secret image? What effect would that have on the combined image?

APCompSci_LessonBottomBanner.pngIMAGES CREATED BY GAVS