Network Security Internet Technology Development Database Servers Mobile Phone Android Software Apple Software Computer Software News IT Information

In addition to Weibo, there is also WeChat

Please pay attention

WeChat public account

Shulou

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

2025-04-06 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Internet Technology >

Share

Shulou(Shulou.com)06/01 Report--

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

Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.

Views: 0

*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.

Share To

Internet Technology

Wechat

© 2024 shulou.com SLNews company. All rights reserved.

12
Report