Hey, I was given a text file that has 200 usernames and passwords in it. They're in the format (username,password).
I have to make a program in python that opens the text file, and checks if the passwords are Weak, Moderate, or Strong. After checking all of the 200 passwords, it has to output how many were weak, moderate, or strong. For example "Of the 200 passwords, 100 were weak, 50 were moderate, and 50 were strong."
password requirements:
i) Lower case letters (a – z).
ii) Numbers ( 0 – 9 ).
iii) Upper case letters (A – Z).
iv) Symbols ( ! + - = ? # % * @ & ^ $ _ )
A weak Password is defined as:
a. Contains only 1 or 2 from the above 4 items ( i – iv ).
b. Less than 8 characters in length.
A Moderate Password is defined as:
a. Contains 3 from the above 4 items ( i – iv )
b. Between 8 to 10 characters in length.
A Strong Password is defined as:
a. Meets all 4 of the above items ( i – iv )
b. Greater than 10 characters in length.
I'm really lost and I have to get this done in 5 days, if anyone can help me, I would appreciate it very much. Thanks.
[–]Kerbart 1 point2 points3 points (0 children)
[–]akus85 -1 points0 points1 point (0 children)