A simple, terminal-based password manager built using Python and MySQL. This project lets users securely store, view, and manage login credentials (username, password, and associated website). Designed as a beginner-level project to demonstrate database handling and basic CRUD operations.
- β Add new login credentials
- π View all saved credentials
- π Search credentials by username
- β Delete specific entries
- π§Ή Clear the entire password database
- π οΈ Error handling for invalid inputs
- Python 3
- MySQL Connector for Python
- MySQL Database
Database: sam
Table: password_manager
| Column | Type | Constraints |
|---|---|---|
| Username | VARCHAR(100) | NOT NULL |
| Password | VARCHAR(100) | NOT NULL |
| Website | VARCHAR(150) | NOT NULL |
git clone https://github.com/yourusername/Password-Manager.git
cd Password-Manager-
Create a database named
sam -
Ensure your MySQL root user has username
rootand passwordroot -
You can change these credentials in the script if needed
pip install mysql-connector-python
python password_manager.py
When you run the script, a simple menu will appear:
Press 1 to add your details
Press 2 to display all your details
Press 3 to view particular details
Press 4 to delete particular details
Press 5 to clear all details
Press 6 to exit password manager
Input the number corresponding to the action you'd like to perform.
Note: This is a learning project and should not be used to store real passwords without encryption and security best practices.