[Menu]>[Java Programming]>[Production samples by JDK1.0]

Password JAVA Applet


Enter password


Click in the box above then type in "inoue" as the password then push the ENTER key.

This applet has Password and URL that jumps and displays inside.
Only in the case that the password matched, it jumps to URL that decided.

The point of this applet is below.
Surveillance of the letter that is input in the text field.( action method )
As the input echo * of the display ( setEchoCharacter )
Displays of other URL.( getAppletContext().showDocument )


There is not a parameter in this applet.
Password and URL that jumps and displays is within an applet.
Therefore, you need to rewrite the source cord to change them,
and need to compile it.

Password and URL is not set up with the parameter.
Because, those understand right away if they see HTLM of the documents.
The secret is not able to be defended in this.

The security even the method( within an applet ) in this time is not complete.
There is the person who had the interest very in this kind of decoding
in the world.
The important information is to never post on HP.

The capital letter, small letter of the alphabet that use with the password are handled assuming that they differ.

As for the production case of JDK1.1, see "Password JAVA Applet".

The size of Pwd10e.class becames 1.64KB.

Designated method in HTML

Source program list

Changing the part of the red character of the source cord,
the password and jump URL are changed.
The password is enabling setting to 20 letters with the alphabet and numeral.



The source program list can utilize by copying to notepad etc.

Copy method