This project is a simple Password Manager application developed in Python using the tkinter
library. It allows users to securely store website credentials, generate strong passwords, and save them in a local file.
-
Password Generation:
- Creates random, strong passwords containing a mix of letters, numbers, and symbols.
- Automatically copies the generated password to the clipboard for convenience.
-
Save Credentials:
- Stores website name, email/username, and password in a local text file (
PasswordManager.txt
). - Displays a confirmation dialog before saving.
- Stores website name, email/username, and password in a local text file (
-
User Interface:
- Built with the
tkinter
library, offering a clean and intuitive GUI.
- Built with the
- Enter the website name, email/username, and password (or generate a new one using the Generate Password button).
- Click the Add button to save the credentials.
- Saved credentials are appended to a text file (
PasswordManager.txt
), which opens automatically after each save.
- Python: Programming language.
- tkinter: GUI framework for Python.
- pyperclip: Library to copy text to the clipboard.
- os: For opening the saved file automatically.
Note: This application is a simple project for educational purposes and does not provide encryption for stored passwords.
The project has received a major update, introducing JSON file handling and advanced exception management techniques, such as try
, except
, else
, and finally
. The new features include:
-
Data Verification:
When entering a website name and click on thesearch
button, the program checks if it is already registered in the JSON file.- If the website is found, a pop-up will display the site name, email/username, and the previously saved password.
- If the website is not found, a warning message will notify you that no data was found in the database.
-
JSON File Creation:
If the JSON file does not exist on the system, it will be automatically created with the name PasswordManager.json. -
Automatic Opening:
After saving the information, the JSON file will automatically open in your preferred editor for review or editing.
The updated code is available in the repository under the name: main_upgraded.py
.
