r/PythonProjects2 • u/Ali2357 • Aug 28 '25
First Project (password manager)
hey guys,
so i have made my first "useful" project namely the password manager.
It can generate random passwords of your desired length and then can save them in a database.
you can also use the database for saving editing and deleting your own passwords.
i have uploaded a short video on the output ( https://youtube.com/shorts/N69mUDZQRtA?feature=share ) and provided a link to my github ( https://github.com/ColMahir/Python.git ) where the code is posted.
i will be greatly thankful for your thoughts on this. Please share anything you want.

17
Upvotes
3
u/shudaoxin Aug 29 '25
Good start assuming you are rather new to programming in general. From here I would change and/or implement the following things if you want to go more advanced:
as already suggested, never save raw passwords in a db (in production), encrypt it
for things such as a menu I recommend a switch case instead of a chained if statement
for reusability, easier maintenance and readability use functions. Maybe even put your sql statements in constants for easier management
if you want to go fancy go OOP and make classes to hold data and functionality in objects for like db, passwords, menu etc
Keep going!