Get the App
SLTechnology News&Howtos  ›  Internet Technology  › 

How to use Python to design a program for password security verification

Shulou Source: shulou.com Published: 2022-06-01 19:55:16 11月11日 Update

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

Tags: Passwords security programs letters characters input degree level length combination security check inspection design special beginning number article check evaluation done Apple Docker Huawei Linux macOS MariaDB Microsoft MySQL NVidia OPPO Reno OPPO Reno vpn Huawei Shulou Information Docker