Print This Post Print This Post

Visual Cryptography

After admiring the Krypto-Kekkonen, I thought I’d roll my own.

Here’s a Python script called split_pic.py to split an image of your choosing into two shares as described by the Naor-Shamir “visual cryptography” scheme. See the script for details.

The script requires PIL (Python Image Library). The outputs are two files, “share1.png” and “share2.png”. Print share1.png on paper, and share2.png on transparency/foil/plastic and carefully align them on top of each other to see the hidden image.

Or, you can use an image editor such as Gimp. Note, the layer effect must be “multiply” for both layers.

Here are two examples you can play with:

First share of the hidden image

First share of the hidden image

Second share of the hidden image

Second share of the hidden image

No Comments so far
Leave a comment



Leave a comment
Line and paragraph breaks automatic, e-mail address never displayed, HTML allowed: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>

(required)

(required)


*
To prove you're a person (not a spam script), type the security word shown in the picture. Click on the picture to hear an audio file of the word.
Click to hear an audio file of the anti-spam word