FontysICT-sem1

Training - Password check

Write a program that meets the following requirements:

  1. User can enter a password (password is not visible, there are bullets or asterisks). After entering the password, user clicks a button.
  2. A panel indicates with 4 colors how strong the password is. If the password is strong then the panel is green, moderately strong then it is yellow, weak then the panel is red and very weak then the panel is black. a. Strong (green): there is a number 1, 2 or 3 in the password AND the password has a length greater than 3.
    1. Strong (green): there is a digit 1, 2 or 3 in the password AND the password has a length greater than 3.
    2. Weak (red): there is no digit 1, 2 or 3 in the password AND the password has a length greater than 3.
    3. Very weak (black): the length of the password is shorter than 3 characters.
    4. Medium (yellow): all other cases.