A method, system, and program defeating unauthorized keystroke logging
during password entry are provided. Secure password entry is facilitated
by displaying a password prompt comprising a changing stream of random
characters, where a particular character within the stream of random
characters is displayed at a visibly detectable higher frequency. A user
selects a password character by entering input to increment or decrement
the particular high frequency character to reach the password character,
such that any unauthorized keystroke logging to detect said password is
ineffective. Once the user reaches the password character, the user
provides another input indicating a selection of the current high
frequency character as the password character. Once the user has selected
all the characters of the password, the user enters an input indicating
the password is complete and the password entry controller then passes
the password to the calling layer.