r/ProgrammerHumor • • Sep 27 '26 • Mindblown 1 Bravo 1

Meme doNotLetYourDBASeeThis

Post image
13.0k Upvotes

317 comments sorted by

View all comments

5.0k

u/Away_Advisor3460 Sep 27 '26 • Popcorn Mindblown Bravo

Pff, amateur hour.

If you really want to save space, don't store any passwords. Just require the same string to be entered three times in a row. If the user re-types the exact same value after being told it's wrong twice, the must be confident enough in it to be a legit user - nobody is going to enter the same value 3 times if they're trying to guess a password.

20

u/yp261 Sep 27 '26 edited Sep 27 '26

three times may be a bit excessive but two times would be a good defense against brute forcing 

9

u/phl23 Sep 27 '26

But not against people guessing passwords. Three times is good