r/learnpython • • Sep 04 '26

My login/account creation system in Python, part of a bigger project I'm building as I learn

This is a console based account system I've been building as I learn Python. Right now it lets you create an account with username and password rules (length limits, and the password needs a letter, a number, and a special character), log in with a 3 attempt lockout, and pick from a simple menu.

It's a work in progress and part of a bigger project. Next I want to add a to-do list and notes, then save the data to a file, and eventually hash the passwords instead of storing them as plain text.

The three password checks are repetitive. I haven't learned functions yet so I did them the long way with separate loops. I already know functions are the fix and that's my next topic, so you don't need to only point that out, but any other feedback is welcome.

I used AI (Claude) as a tutor to understand concepts and point me toward my own bugs, but I wrote and debugged every line myself. I'm learning how to code through the MOOC.

GitHub: https://github.com/mart23inez/Personal-Account-System/tree/main

What would you improve or build next?

1 Upvotes

8 comments sorted by

3

u/AmanBabuHemant Sep 04 '26

log in with a 3 attempt lockout

user can just re-run the program and continue attemping :)

1

u/MoreScorpion289 Sep 04 '26

Yes lol temporary for now, real lockout coming soon.

→ More replies (1)

1

u/[deleted] Sep 06 '26

[removed] — view removed comment

1

u/MoreScorpion289 Sep 06 '26

Good question, I think you’re only half right though.

My program is not secure and most likely won’t ever be as long as it’s run on the users own machine. They can open the .py file and just make whatever changes to get past the login check or to see what I save to the disk. I did point this out in the README.md.

I do think that Python has nothing to do with it, meaning if I compiled this into an .exe it would have the same problem. Python does secure login fine, it just has to run somewhere the user cannot touch. I think instagrams backend is Django which is Python and it does the job.

Also, code being public does not make it insecure, there are a bunch of different auth systems, like Linux, that are all open source and would say that they run most of the internet.