This Python script generates secure passwords based on the user's preferred level of security. The generated passwords can include uppercase letters, lowercase letters, numbers, and special characters. The password is also automatically copied to the clipboard using the pyperclip library.
- Secure Password:
Includes uppercase and lowercase letters. - Secure Plus Password:
Includes letters and numbers. - Ultra Secure Password:
Includes letters, numbers, and special characters.
- Run the script:
python main.py
- Choose Password Security Level: You will be prompted to select a level of security:
- [1] Secure Password: Letters only.
- [2] Secure Plus Password: Letters and numbers.
- [3] Ultra Secure Password: Letters, numbers, and characters.
- Specify Password Length:
Enter a number greater than or equal to 10.
If the input is invalid, the script will prompt you to try again.
- Password Generation: The generated password will be displayed and automatically copied to your clipboard.
- Python 3.x
pypercliposrandom
To install pyperclip, use the following command:
pip install pyperclip