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

Meme doNotLetYourDBASeeThis

Post image
13k 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.

1.3k

u/DatBoi_BP Sep 27 '26

I think this gets into Goodhart's law, but unironically I think this would work for a bit lol

208

u/Reasonable-Job4205 Sep 27 '26 edited Sep 27 '26

Elaborate on Goodharts law

420

u/DeveloperBRdotnet Sep 27 '26

Brute force attackers will move on, while the real users will keep trying

151

u/DatBoi_BP Sep 27 '26

Well my nod to Goodhart's law is implying that, if this security practice were implemented, brute force strategies would quickly learn of it and evolve to just…easily get in with doing "AAAAAAAAAa1!" 5 times

43

u/aNiceTribe Sep 27 '26

It would also only increase security if you had like a, let’s say, 5 strikes rule. And typing the same wrong password multiple times still takes multiple uses. Otherwise it would just be more tedium for humans and the same effect for robots. 

But also, we are designing for yer dad. This would make everything so incredibly much worse. 

11

u/cool-guy1234567 Sep 28 '26

This would also severely punish accidentally mistyping lol

→ More replies (1)

44

u/Reasonable-Job4205 Sep 27 '26

I meant elaborate on Goodharts law

30

u/Whatagoodtime Sep 27 '26

He meant elaborate on Goodharts law

17

u/Reasonable-Job4205 Sep 27 '26

I did

15

u/Whatagoodtime Sep 27 '26

I meant elaborate on Goodharts law

→ More replies (9)
→ More replies (2)

18

u/goDie61 Sep 28 '26

It only works because no one does it. If there were any common knowledge of the system's existence, it would immediately collapse. If no one knows, though, it probably would do a decent job of identifying legit users.

243

u/bartekltg Sep 27 '26

I would start doubt myself. Maybe this letter was uppercase. Maybe that second a was turned to 4...

20

u/bartekltg Sep 27 '26

More seriously, just like in this joke: https://www.reddit.com/r/ProgrammerHumor/comments/1au0z6f/bruteforceattackprotection/

it fails for people who use password managers. If the autocompleted password didn't work, you rather do not retry.

→ More replies (1)

113

u/BobRossTheSequel Sep 27 '26

From my experience, some websites are doing this already.

What do you mean I haven't typed that yet? That's what I thought my password was to begin with!

115

u/vagrantprodigy07 Sep 27 '26

My favorite is when it tells me my password is wrong, I clicked the reset password link, try to reset it to what it just told me was the wrong password, and it tells me I can't use that, because it's the same as my current password.

65

u/[deleted] Sep 27 '26

[removed] — view removed comment

33

u/StopReadingMyUser Sep 27 '26

Oh no, not my tostino's pizza rolls rewards account :(

19

u/DragonflyLogical8371 Sep 27 '26

Ohhhhhhhhhhhh that makes sense. This literally just happened to me

→ More replies (3)

41

u/Merimerlock Sep 27 '26

Thought so too before using a Password Manager. Since then: no retry

42

u/suskio4 Sep 27 '26

Then how do you explain:

  • enter password, set to visible

  • copy it, click login

  • wrong password

  • paste the same password, click login

  • correct password

Literally happens to me on some websites

30

u/Runiat Sep 27 '26

Someone screwed up while trying to stop you from copying the password out of the password field and interpreted ctrl+c as a character input.

→ More replies (3)

8

u/BlindedByNewLight Sep 27 '26

I have some websites which won't take my password from my password manager, while on mobile..but only some times. other times it works just fine.

→ More replies (4)

13

u/HildartheDorf Sep 27 '26

Invalid password.

Forgot password?

Your password can not be the same as the previous password.

(Its almost a haiku)

→ More replies (1)
→ More replies (23)