r/ProgrammerHumor • • Sep 27 '26

Meme doNotLetYourDBASeeThis

Post image
13k Upvotes

318 comments sorted by

View all comments

5.0k

u/Away_Advisor3460 Sep 27 '26

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 

→ More replies (1)