Print "Password needs at least one number." Print "Password needs at least one lower-case character." ![]() Print "Password needs at least one upper-case character." Print "Invalid password! Review below and change your password accordingly!" If check_upper(input) & check_lower(input) & check_number(input) & check_special(input) & check_len(input): Lower_list = "a b c d e f g h i j k l m n o p q r s t u v w x y z".split() Upper_list = "A B C D E F G H I J K L M N O P Q R S T U V W X Y Z".split() I'd also like to know if there are any logical errors and/or bugs in the program. In particular, I'd like to know if a program written this simply could be used in real-world applications. I'd like any and all feedback about this program. ![]() The program seems to work just fine, and with a program this small I think that not using regex is also just fine. ![]() Using Python 2.7.12 I wrote a simple little script, psk_validate.py, that prompts the user for a potential password and checks if it has upper and lower-case characters, numbers, special characters, and that it has a length of at least 8 characters.įrom what I understand one could use the regex library to write this much more efficiently, however, I have yet to learn about regex.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |