So I was having problems falling asleep the night before and what does my mind do?
I was thinking of a way to encode secret messages into images. The idea is kind of simple.
You have the following elements
- A Picture
- A Message
- A Passcode
The idea is that you cycle through the pixels in the image. You alter the RBG values of the pixel (or not) so that if the R, G, and B values are even it represents a 0 and odd represents a 1. That way the colors are only changed slightly.You space out the pixels you change based on the passcode so that the changes are spread out and to decode them properly you will need to know the passcode.
So with this you could encode a hidden message into an image. Email it to someone and if they know the passcode, they can run it through the program to decode it. Anyone who intercepted the image would not be able to read the message because
- they might not realizes there is a hidden message
- even if they do they would need to passcode to decrypt it
So thats what I was thinking about while trying to fall asleep. In a month or so when I have some free time I think I will actaully write the program. Might make a cool iPhone app too.
Published: January 21st pm31 2:40pm EstEST