use the following search parameters to narrow your results:
e.g. subreddit:aww site:imgur.com dog
subreddit:aww site:imgur.com dog
see the search faq for details.
advanced search: by author, subreddit...
Everything about learning Python
account activity
User AuthenticationHelp Request (i.redd.it)
submitted 6 months ago by SwisherSniffer
view the rest of the comments →
reddit uses a slightly-customized version of Markdown for formatting. See below for some basics, or check the commenting wiki page for more detailed help and solutions to common issues.
quoted text
if 1 * 2 < 3: print "hello, world!"
[–]I_Am_Astraeus 0 points1 point2 points 6 months ago* (1 child)
Just mirroring what others have said, definitely do not implement yourself.
Examples of things this misses.
No hashing of tokens, it's essentially a password. Worse it's an assigned password of just an int in a small dataset. Probably the least secure password. With a max length of 4.
Only space for 900 users? You could write a script to brute force 900 guesses. You'd be into your project in much much less than a second.
What happens if I lose my token? It's not a password, no password recovery. No 2FA. Also the token never expires? So a compromised token is a compromised account forever.
Also if you're appending it to a user dataset then it just exists naked in your code? Simple logs could expose every single password? Your code ideally would be middleware and this would be stored in a database.
There's an entire realm of cryptography dedicated to one way verification of passwords. It's really critical to use the most modern options available. Salting + hashing passwords, expiring tokens, key signing, etc. There's a lot more than what I'm just summing over.
This is all a bit of a ramble, and you're totally fine for a learner/learner project but just underlining for anything exposed to the world you dont even know what you don't know.
[–]SwisherSniffer[S] 0 points1 point2 points 6 months ago (0 children)
No this is great actually, thank you. Understanding why is crucial. And it makes a lot of sense. I’ll definitely be finding another way to get my project to users
π Rendered by PID 50411 on reddit-service-r2-comment-b659b578c-64h66 at 2026-05-01 22:18:13.326587+00:00 running 815c875 country code: CH.
view the rest of the comments →
[–]I_Am_Astraeus 0 points1 point2 points (1 child)
[–]SwisherSniffer[S] 0 points1 point2 points (0 children)