Creating a steganographic image archive

Now that we have an image and a ZIP archive, we can combine them together to "hide" the archive within the image. This is probably the most primitive form of steganography. A more advanced way would be to split up the file byte by byte, store the information in the low bits of the image, use a special program to extract the data from the image, and then reconstruct the original data. This example is nice because we can easily test and verify if it still loads as an image and still behaves like a ZIP archive.

The following example will take a JPEG image and a ZIP archive and combine them to create a hidden archive. The file will retain the .jpg extension and will still function and look like a normal ...

Get Security with Go now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.