2
$\begingroup$

Using a steganographic algorithm like least significant bit, can one hide a text in an image and then hide that image in another image?

$\endgroup$
2
  • 1
    $\begingroup$ Daniel has already answered. I suspect however that if you have already found the image hidden in the other image that stenography is now kind expected, removing most of the surprise factor. So while it is possible, it is questionable if such a scheme makes any sense. $\endgroup$
    – Maarten Bodewes
    Commented Apr 26, 2019 at 11:13
  • $\begingroup$ I'm voting to close this question as off-topic because questions about steganography are only valid if they are about keyed steganography, as that would make them a form of cryptography. More information here $\endgroup$
    – Maarten Bodewes
    Commented Apr 26, 2019 at 15:49

1 Answer 1

4
$\begingroup$

Yes!

For bitmap images, if you use all the pixels of the image (bad idea, it's very detectable) you need a first image 8/3 times bigger than the size of the text you want to hide (you can compress it).

  • 8 because you need 8 pixels to hide one byte (one bit per pixel).
  • 1/3 with color images, because you can hide a bit per channel/pixel.

After this, you can hide this image into another image 8 times bigger (again, 1 byte into 8 pixels).

For JPEG images the approach is different, because you are hiding information into the DCT coefficients. But it's the same idea.

$\endgroup$

Not the answer you're looking for? Browse other questions tagged or ask your own question.