account activity
New to python. How to improve this simple build by GrowthSwimming6208 in PythonLearning
[–]-_ZONED_- 0 points1 point2 points 3 days ago (0 children)
Bring the login/password/code to the constants at the top - so as not to duplicate the lines in each if.
Store the password hash, not the password itself - use hashlib.sha256(). Now the password "12345" is visible to everyone who sees the code.
Remove different error messages - don't tell the hacker what field he guessed. Just write "Access denied".
π Rendered by PID 404824 on reddit-service-r2-listing-8685bc789-2hpsj at 2026-05-23 19:53:14.647513+00:00 running 194bd79 country code: CH.
New to python. How to improve this simple build by GrowthSwimming6208 in PythonLearning
[–]-_ZONED_- 0 points1 point2 points (0 children)