A computer system, comprising one or more processors, one or more memories, and one or more computer readable hardware storage devices, said one or more hardware storage device containing program code executable by the one or more processors via the one or more memories to implement a method for assessing a password based on characteristics of a physical arrangement of keys of a keyboard, said method comprising, said method comprising:
- said one or more processors storing, in a data store of the computer system, a password, said password consisting a plurality of characters that include at least two unique characters;
- for each unique character of the password, said one or more processors determining a character key, of the keyboard, which denotes the unique character of the password;
- said one or more processors assigning:
- (i) to each determined character key of the keyboard, a positive flag having a value equal to at least 1;
- and (ii) to each key of the keyboard that is not one of the determined character keys, a null flag having a value of 0;
- for each key vector of the keyboard, said one or more processors computing a key detection frequency as equal to a sum of the values of the positive flags of the determined character keys in the key vector;
- said one or more processors determining a maximum key detection frequency from among the computed key detection frequencies of the key vectors;
- and
- said one or more processors comparing the maximum key detection frequency with a threshold key detection frequency and ascertaining from said comparing whether or not the maximum key detection frequency is equal to or greater than the threshold key detection frequency.