Visual Cryptography

This applet was written at the chair of Management of InformationSecurity at the University of Regensburg for a project seminar. Goal of this Applet is to demonstrate the wide range and mightiness of the Visiual Cryptography.

So what is Visual Cryptography?

Visual cryptography was introduced by Moni Naor und Adi Shamir in 1994. This new type of cryptographic scheme, which is is perfectly secure, can decode concealed images without any cryptographic computations by the human visual system. For a example take a try of this Applet. For further information on the model see

An Introduction on this topic in German language was written by Ulrike Mendel and is available here.

How to get the applet running correctly

Using the applet you could find some strange behaviour in the application. It is due to the mode of operates of Java Policy. As your machine is running a java applet there are some security restrictions applied for denying access to your local filesystem. If you want to use the applet in all its parts, you can easily call policytool program in java/bin folder and set up a new policy in {HOME}\.java.policy (for windows users).

Follow these points:
  1. Call "policytool" program in "java/bin" folder
  2. Click on "Add policy entry" button
  3. Click on "Add permission" button
  4. In permission box, select "All permission"
  5. Click "ok" to go on (after that a new rule is visible in policy entry window)
  6. Now click "end" (you could read "codebase(ALL)" in main window)
  7. Select File->Save and provide ".java.policy" name
  8. Close policytool utility program.

Using the policytool utility program, you can also set a restricted folder for the VCApplet access (refer to sun web site).
Sometimes it is necessary to reload the policy-file. To do so type r in the Java Console.
To set back the basic java security policy, please remove the permission created after the use of the applet.

Alternatively - without using java policytool - create a file named .java.policy with content:
  grant {
     permission java.security.AllPermission;
  };
and place it in your home-directory or download it here.

The Applet

download the application     download source files

Help

The help file is integrated in the applet. Click within the applet and press F1 to access it easily.

Version History