r/ProgrammerHumor • • 2d ago

Meme postQuantumReadiness

Post image
9.7k Upvotes

234 comments sorted by

View all comments

Show parent comment

15

u/DannyRamirez24 1d ago

How can they check it's an increment if they're supposed to store hashes and not actual passwords? 💀

7

u/soundoftwilight 1d ago

There’s so many ways to do this. Simplest is to make the user type in the old password, most thorough is to just try the inverse of every operation you want to ban on the new password and see if any result in a match on the old hash. You can also use fancy hashing algorithms but frankly that seems like too much effort.

5

u/xylarr 1d ago

You enter the old password first

2

u/arandomdude24 1d ago

They don't actually list the exact criteria. I've tried a number increment, a single character change inside, a single additional character, doesn't get accepted.

Whatever they do makes it so that I actually have to change the password somewhat. I'm not a cysec guy so idk how it all works. I just put shit into Claude all day now so what do I know.

1

u/Soma91 1d ago

It's a well established practice for auth providers. They also save the structure of your password and require you to change that structure significantly enough.

1

u/wheredowejumpguys 1d ago

There are hashing algorithms where you can somewhat measure if two hashes are too close to each other

2

u/ozh 1d ago

Surely you're talking about the hashing algo ROT13

3

u/Pearmoat 1d ago

That sounds really smart.

Really helpful when someone wants to brute force it: "JeffIsAW31ner is not correct , but you're really close!"

-1

u/yup_its_me_again 1d ago

Also hash the permutations upon password change, and add those to a list of disallowed password hashes

1

u/frogjg2003 15h ago

That just make it easier to brute force decrypt the hashed password. "Password5!" didn't match, but it did match one of the permutations, let's try "Password6$".

1

u/yup_its_me_again 15h ago

I know, so salting and peppers become even more important. I don't mind the downvotes, but it's not something I've come up with independently. Cf
https://security.stackexchange.com/questions/53481/does-facebook-store-plain-text-passwords/53483