
We use many apps and websites everyday for school, work, research , personal use or just for fun! Most of these require us to register /sign- up with a username and password. It’s important to have a strong password to protect our private information.
This project helps you to check the strength of your password and even helps you in generating a stronger one.
You can also enhance the project by providing a โCopy to Clipboardโ option and tips for creating strong passwords.
Pseudo Code:
Import necessary libraries (tkinter, random, string)
Define function to check password strength:
ย ย ย ย Set initial strength as "Weak"
ย ย ย ย If password length >= 8:
ย ย ย ย ย ย ย ย If password contains digits, uppercase letters, and special characters:
ย ย ย ย ย ย ย ย ย ย ย ย Set strength to "Strong"
ย ย ย ย ย ย ย ย Else if password contains digits or uppercase letters:
ย ย ย ย ย ย ย ย ย ย ย ย Set strength to "Medium"
ย ย ย ย Return strength
Define function to generate a random strong password:
ย ย ย ย While loop to generate a password:
ย ย ย ย ย ย ย ย Create password by selecting random characters from letters, digits, and special symbols
ย ย ย ย ย ย ย ย Check password strength
ย ย ย ย ย ย ย ย If strength is "Strong":
ย ย ย ย ย ย ย ย ย ย ย ย Exit the loop
ย ย ย ย Return password
Define function to check the entered password's strength:
ย ย ย ย Get password from input field
ย ย ย ย Call function to check strength and display result
Set up GUI window (Tkinter):
ย ย ย ย Create label with instructions for entering or generating password
ย ย ย ย Create input field for password
ย ย ย ย Create label to display strength of password
ย ย ย ย Create button to check strength
ย ย ย ย Create button to generate a strong password
Run the main event loop to display GUI