Javatpoint Logo
Javatpoint Logo

Python Program for Strong Password Suggestion


In this tutorial, we learn about the strong password suggester Python Program. A strong password is needed to build strong security. It has become important to keep secure every device, social media account, bank account, ATM, important document, etc. We use a password to lock in the necessary information for high-security purposes so that only authorized users can access the relevant information. Others cannot access this information.

As many of you have noticed, the password is usually represented by the asterisk (*) symbol indicating the number of characters. Email or other encrypted services do not allow weak and short passwords. You cannot enter only a few letters or numbers, as brute-force methods can easily crack these passwords.

Some services, such as Gmail, allow users to choose suggested passwords. This article will use Python programming to suggest a strong password-generation task.

What are the criteria for a strong password?

The password must contain at least one special character like @, #, $, !, &, etc. There must be one upper case character (A, B, C, D, E, F ......, Z) and one lower case character (a, b, c, d, e, f, g, .........., z). The password must have a numeric character which must be between 0 to 1, 2, 3, 4, 5, 6, 7, 8, 9. The length of the password must be more than 8. If a password maintains all of these criteria, then this is called a strong password.


Program Code:

Here, we give a program code that suggests a list of strong passwords randomly based on your input. The code is now given below -


Now we compile the above code in Python, and after successful compilation, we run it. Then the output is given below -

The suggested passwords are listed in below:


So, by this tutorial, we are learning about the strong password suggester Python Program. We first check the strength of the entered password. If everything is done, then it is a strong password. Otherwise, it will check for missing characters like upper case, lower case, numeric character, or special characters and return the generated password list to the user.

Youtube For Videos Join Our Youtube Channel: Join Now


Help Others, Please Share

facebook twitter pinterest

Learn Latest Tutorials


Trending Technologies

B.Tech / MCA