How to use Python to design a program for password security verification
Xiaobian to share with you how to use Python to design password security verification program, I hope you will gain something after reading this article, let's discuss it together!
Program introduction
This procedure makes use of
1. Passwords must be composed of numbers, letters and special characters.
two。 Passwords can only start with letters
3. Password length cannot be less than 16 digits
To determine the level of the password.
First, write in the characters that can be entered:
Symbols = ringing girls'`! @ # $% ^ & * () _ +-= / * {} []\ |;: / 'chars =' abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ'nums = '0123456789'
Then start the loop and determine the password length:
While 1: print ('- password security level check -') passwd = input ('Please enter the password combination to be checked:') length = len (passwd) while passwd.isspace () or length = 0: passwd = input ('the password you entered is empty, please re-enter:') if length