Chapter 1: Introduction

Download Report

Transcript Chapter 1: Introduction

Visual Cryptography

Jiangyi Hu

Visual Cryptography

Example Secret sharing Visual cryptography Model Extensions

Visual Cryptography 2 Jiangyi Hu, Zhiqian Hu

Example

What is visual cryptography?

Visual Cryptography 3 Jiangyi Hu, Zhiqian Hu

Secret Sharing

The General Idea All n parties can get together and recover secret s . Less than n parties cannot recover secret s .

Visual Cryptography 4 Jiangyi Hu, Zhiqian Hu

Secret Sharing (Cont.)

Suppose two parties are going to share a secret bit string 1011.

A coin toss is used to generate the first bit of the first share. If the result of the coin toss is a head, then the bit is 0; otherwise, the bit is a 1. Now generate the first bit of the second share. If the first bit of the first share was 0, then copy the first bit of the secret. Otherwise, if the bit of the first share was 1, then flip the first bit of the secret and use that.

Repeat this random process for each bit of the secret.

Visual Cryptography 5 Jiangyi Hu, Zhiqian Hu

Secret Sharing (Cont.)

Suppose the secret is 1011, toss the coin 4 times and get the sequence head, tail, tail, and head. Then the first share would simply be 0110. As a result, the bits of the second share would be 1101 (the XOR of 0110 and 1011).

Secret: 1011 S1:0110 S2:1101 No information about the secret will be gained by looking at either the first share or the second share. Combine two share and can discover the secret: S1 XOR S2 = Secret.

Visual Cryptography 6 Jiangyi Hu, Zhiqian Hu

Visual Cryptography

Visual cryptography was introduced by Naor and Shamir at

EUROCRYPT '94

. It is used to encrypt written material (printed text, handwritten notes, pictures, etc) in a perfectly secure way.

The decoding is done by the human visual system directly.

Visual Cryptography 7 Jiangyi Hu, Zhiqian Hu

Visual Cryptography (Cont.)

For a set P of n participants, a secret image S is encoded into n shadow images called shares, where each participant in P receives one share. Certain qualified subset of participants can visually recover the secret image, but other, forbidden, sets of participants have no information on S.

Visual Cryptography 8 Jiangyi Hu, Zhiqian Hu

Visual Cryptography (Cont.)

A visual recovery for a set X of participants consists of copying the shares onto transparencies, then stacking them on a projector. The participants in a qualified set X will be able to see the secret image without any knowledge of cryptography and without performing any cryptographic computation.

Visual Cryptography 9 Jiangyi Hu, Zhiqian Hu

Model

Assume the message consists of a collection of black and white pixels and each pixel is handled separately.

Each share is a collection of m black and white subpixels.

Boolean matrix S=[s ij ] where s ij in the ith transparency is black.

=1 iff the jth subpixel The grey level of the combined share is interpreted ( )   

Visual Cryptography 10 Jiangyi Hu, Zhiqian Hu

Model (Cont.)

1 

d

m

is some fixed threshold and

a

 0 is the relative difference.

H(V) is the hamming weight of the vector.

The visual effect of a black subpixel in one transparency can’t be undone by the color of that subpixel in other transparencies which are laid over it.

Visual Cryptography 11 Jiangyi Hu, Zhiqian Hu

Model (Cont.)

Visual Cryptography 12 Jiangyi Hu, Zhiqian Hu

2 out of 2 visual cryptography

Visual Cryptography 13 Jiangyi Hu, Zhiqian Hu

2 out of 2 scheme (Cont.)

A pixel P is split into two subpixels.

If P is white, then a coin toss is used to randomly choose one of the first two rows in the figure above. If P is black, then a coin toss is used to randomly choose one of the last two rows in the figure above.

The pixel P is encrypted as two subpixels in each of the two shares, as determined by the chosen row in the figure. Every pixel is encrypted using a new coin toss.

Visual Cryptography 14 Jiangyi Hu, Zhiqian Hu

2 out of 2 scheme (Cont.)

For each pixel, neither the first share nor the second gives any clue as to whether the pixel is black or white. Since all the pixels in the secret image were encrypted using independent random coin flips, there is no information to be gained by looking at pixels on a share, either. This demonstrates the security of the scheme.

Visual Cryptography 15 Jiangyi Hu, Zhiqian Hu

2 out of 2 scheme (Cont.)

When superimpose the two shares, consider one pixel P.

If P is black, we get two black subpixels.

If P is white, we get one black subpixel and one white subpixel. Thus, the reconstructed pixel (consisting of two subpixels) has a grey level of 1 if P is black, and a grey level of 1/2 if P is white.

There will be a 50% loss of contrast in the reconstructed image, but it is still be visible.

Visual Cryptography 16 Jiangyi Hu, Zhiqian Hu

3 out of 3 visual cryptography

0011 1100 0101 1010 0110 1001 horizontal shares vertical shares diagonal shares

Visual Cryptography 17 Jiangyi Hu, Zhiqian Hu

3 out of 3 scheme (Cont.)

Visual Cryptography 18 Jiangyi Hu, Zhiqian Hu

3 out of 3 scheme (Cont.)

Each matrix in either

C 0

and

C 1

contains one horizontal share, one vertical share and one diagonal share.

The analysis of one or two shares makes it impossible to distinguish between

C 0

and

C 1.

A stack of three transparencies from

C 0

only ¾ black, whereas a stack of transparencies from

C 1

is is completely black.

Visual Cryptography 19 Jiangyi Hu, Zhiqian Hu

Extension and enhancement

Each pixel in each one of the two transparencies is presented by a rotated half circle.

Send innocent looking transparencies, e.g.. Send images a dog, a house, and get a spy message with no trace. Color visual cryptography

Visual Cryptography 20 Jiangyi Hu, Zhiqian Hu

Color Visual Cryptography

Verheul and van Tilborg ’ s method For a C-color image, we expand each pixel to C subpixels on two images.

For each subpixel, we divide it to C regions. One fixed region for one color.

If the subpixel is assigned color C 1 , only the region belonged to C 1 will have the color.Other regions are left black.

Visual Cryptography 21 Jiangyi Hu, Zhiqian Hu

Color Visual Cryptography (Cont.)

One pixel on four- color image Four subpixels

Visual Cryptography

Four regions

22

Combined

Jiangyi Hu, Zhiqian Hu

Color Visual Cryptography(cont.)

Rijmen and Preneel ’ s method Each pixel is divided into 4 subpixels, with the color red, green, blue and white.

In any order, we can get 24 different combination of colors.We average the combination to present the color.

To encode, choose the closest combination, select a random order on the first share. According to the combination, we can get the second share.

Visual Cryptography 23 Jiangyi Hu, Zhiqian Hu

Rijmen and Preneel

s method

Pattern1 Pattern2 Combined Result Pattern1 Pattern2 Combined Result

Visual Cryptography 24 Jiangyi Hu, Zhiqian Hu

Some References

Naor, M. and A. Shamir, Visual Cryptography, Eurocrypt ’94 Proceedings G.Ateniese, C. Blundo, A. De Santis and D.R. Stinson. Visual Cryptography for General Access Structures, Information and Computation, 1996 www.dia.unisa.it/VISUAL/ www.cacr.math.uwaterloo.ca/~dstinson/visual.html

www.leemon.com/crypto/visualCrypto.html

Visual Cryptography 25 Jiangyi Hu, Zhiqian Hu

Thank you !

Visual Cryptography 26 Jiangyi Hu, Zhiqian Hu