PicLock-applet asks password from user and if correct password is given, it shows a picture.
PicLock is made in really simple way. Password is actually name of the picture that will be shown. So, if you want that password is "secretpw", you have to save picture with name "secretpw.jpg" or "secretpw.gif". Suffix (".jpg" or ".gif") will be given to applet via parameters.
Advantage of this (in addition to that applet is really easy to use) is that there can actually be lots of pictures and corresponding passwords. If there are pictures "one.jpg" and "two.jpg" in same direcotry where PicLock-applet is located, giving password "one" will show picture "one.jpg" etc. Also, it's not possible to find out password from applet or page source code.
If user gives wrong password, program get stuck trying to load non-existing picture until page is reloaded and applet restarts.
Required parameters | ||
None | ||
Additional parameters | ||
Name | Possible values | Description |
---|---|---|
PictureSuffix | Usually ".jpg" or ".gif" | Suffix of picture-filename(s). Default is ".jpg". You can also give empty suffix, "". In that case user have to give full filename of picture as password. (In other words, applet just join given password and suffix together.) |
AppletBgColor | Hex RGB-color | Applet background color. |
TextBgColor | Hex RGB-color | Textfield background color. |
TextColor | Hex RGB-color | Text color. |
Text | String | Text which will be ready on password-textfield. It could say "Enter password" or something like that. |
EchoChar | Character | Character which will be displayed on textfield instead of actual letters. Default is '*'. You can also give empty valuestring (VALUE="") to turn character echo off. |
Example applet running | Example applet HTML-code |
<APPLET CODE="PicLock.class" WIDTH=280 HEIGHT=200>
|
www.tiikoni.net/java/free/piclock/piclock.php | Full page map | Copyright © Pasi Laaksonen |