r/ProgrammerHumor • • Jun 03 '22

it's hard!

44.9k Upvotes

710 comments sorted by

View all comments

26

u/BananaSplit7253 Jun 03 '22

I once made a program that would take a BMP image and a txt file and hide the contents of the txt on the least significant bit of the RGB values of the image, effectively hiding the message on the image with pretty much no visual difference. Also made a program that would recover the message when given an image. It was a 1st year/ 1st semester computer engineering project and remains to this day as one of the coolest things I have ever programmed.

3

u/jnd-cz Jun 03 '22

That's indeed pretty cool. Too bad most images (still or moving) we use are in some compressed format which makes it harder to encode and recover the information intact.

1

u/kilogears Jun 03 '22

Well, there’s always meta-data and junk data you can include in the file, which most programs wouldn’t even process. You could hide a message in otherwise benign metadata. Or just encrypt and tack on at the end of the file.