[Tutor] Pythonify this code!
Luke Paireepinart
rabidpoobear at gmail.com
Mon Jul 13 12:38:22 CEST 2009
>
>
>
> I tried my hand at steganography
>>
>
> Never heard of it before![snip]
>
> I didn't notice anything that would be v3 specific. Also I can't
> comment on the algorithm since I don't really know what its
> doing!
>
Alan,
Steganography's really neat! You should look into it.
Basically what his code does is takes an image, and it twiddles the least
significant bits of each pixel to store a message in it (eg. make tweak each
RGB value of each pixel to be either even or odd, and you can encode binary
directly in the image!). The image looks practically identical to the
original (moreso the less data you encode per pixel) and you can store
hidden messages. It's interesting, it's along the same lines as
cryptography only it's in the field of "let's hide it so they don't even
know there's a message at all!" like those guys who would shave slaves'
heads and write messages on them and wait for the hair to grow out. When
they were stopped and searched by the enemy, they came out clean, and the
guy just has to know to "look under the hair", as it were (or in this case,
look at the bits) and they can get the original message.
Obviously the main caveat is that you have to use lossless image formats
such as PNG or the compression algorithm will destroy your steganography.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/tutor/attachments/20090713/5193da76/attachment.htm>
More information about the Tutor
mailing list