password-generator.mov
gui.mov
Important
Now, PasswordAlgorithms support Windows, MacOS, and Linux directly!
This is a password generator that can generate strong and secure passwords. It is written in Python and uses the random
module to generate random characters. The colorama
module is used to print text in different colors.
The code is very simple to understand. The first few lines import the necessary modules. Then, a variable called characters
is created that contains all the characters that can be used in a password.
The next few lines print the title of the program and ask the user to enter the length of the password and the number of passwords to generate.
The for
loop then iterates over the number of passwords to generate. In each iteration, a new password is generated by joining random characters from the characters
variable. The password is then printed to the console.
The time.sleep()
function is used to pause the program for 0.5 seconds between each password generation. This is done to make the program more user-friendly.
Here is a step-by-step explanation of the code:
- The
random
module is imported. - The
colorama
module is imported. - A variable called
characters
is created that contains all the characters that can be used in a password. - The title of the program is printed.
- The user is asked to enter the length of the password.
- The user is asked to enter the number of passwords to generate.
- A
for
loop iterates over the number of passwords to generate. - In each iteration, a new password is generated by joining random characters from the
characters
variable. - The password is printed to the console.
- The
time.sleep()
function is used to pause the program for 0.5 seconds between each password generation.
This is a simple GUI application built with Python's Tkinter library. The application provides two main functionalities: password generation and password checking.
-
Password Generation: The application can generate random passwords based on user preferences. Users can specify the length of the password and the number of alternative passwords to generate. They also have the option to include special characters in the password.
-
Password Checking: The application can also check the strength of a given password. It provides information about the number of uppercase letters, lowercase letters, and digits in the password. It also estimates the time it would take to crack the password and gives a safety score from 0 to 5.
-
Have i been pwned This function scans your password for all internet leaks and shows how many times it has been leaked.
Note
I use haveibeenpwned.com api for this function.
Important
The 'safety_point' rating, where I show the strength of your password, is purely personal, not scientific.
To run the application, simply execute the gui.py script with a Python interpreter. The application requires the Tkinter library, which is included in standard Python distributions.
Pull requests are welcome. For major changes, please open an issue first to discuss what you would like to change.
This project is under MIT license.
special thanks to @ayseguldemireel for better UI experiance.