This Python script provides a flexible password generator with two main functionalities:
[1] generating XKCD-style passwords inspired from this comic and
[2] traditional passwords.
Users can choose the type of password, customize its length, and include various elements such as digits, special characters, and capital letters.
- Users can specify the minimum length of the password.
- Option to include digits in the password.
- Option to include special characters in the password.
- Option to include capital letters in the password.
- Users can customize the range of the number of letters in each word of the password phrase.
- Users can specify the number of words in the password phrase.
- Option to include special characters as delimiters in the password phrase.
- Option to include digits in the password phrase.
- Option to capitalize random letters in the password phrase.
- Option to create an acronym for the password phrase.
-
Clone the repository or download the script
passwordGenerator.py
. -
Open a terminal or command prompt and navigate to the directory containing
passwordGenerator.py
. -
Run the script using the command:
python passwordGenerator.py
-
Choose the type of password you want to generate:
- Enter
1
for an XKCD-style password. - Enter
2
for a traditional password.
- Enter
-
Follow the prompts to customize the password generation:
- For traditional passwords, specify the length and choose to include digits, special characters, and capital letters.
- For XKCD-style passwords, customize the range of the number of letters in each word, the number of words, and other options.
-
The script will generate and display the generated password.
- Ensure you have Python installed on your system to run the script.
- Follow the on-screen prompts to customize your password generation.
If you have any suggestions or improvements, feel free to open an issue or create a pull request.