lundi 25 septembre 2017

How do I write a Python Password Checker and Generator Program

The program needs to let the user check the strength of passwords and generate strong passwords. The program should check the strength of a password based on a point scoring system. So, once a pw is entered points are awarded based on the length of the pw and the types of characters in the pw.

5 points are given if the pw contains at least 1 UC letter, 1 LC letter, 1 digit (o-9) and one of the allowed symbols. If the password contains at least one of all of these then an additional 10 points are added.

5 points are deducted if the pw only contains 1 UC and LC letter, contains only digits, contains only one of the allowed symbols, if the pw contains three consecutive letters based on the layout of a QWERTY keyboard then 5 points are deducted from the score for each set of three. E.g- tYu= -5 or asdFG=-15

The point score is then used to show if the pw strength is weak, medium or strong. If the point score is >20 then its strong. If the point score is 0 or less than 10 the pw is weak. The pw strength and point score should be displayed to the user. Then they should be returned to the menu.

Password Checker Program -It has to check the pw only contains: Uppercase Letters, Lowercase letters, digits(0-9) and symbols(!"£$%^&*()-+ ). If a prohibited character is in the pw an error message is displayed and the user is returned to the menu. A point score is calculated for the entered pw. the score is set to the length of the pw. E.g- if the pw is 12 characters long then score is 12)

Generating password program- the program must generate a random number between 8 and 12. this number will be the length of the pw. Then the program must generate a random sequence of characters using letters, digits and allowed symbols to make a pw of the length generated. This should be repeated until the pw is strong. The generated pw and point score should then be displayed and the user is returned to the menu.

If anyone can write this whole program out for me in PYTHON in a fairly simplied form that would be great I am currently doing a course in Computing at college and I am struggling.




Aucun commentaire:

Enregistrer un commentaire