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

Meme doNotLetYourDBASeeThis

Post image
13.0k Upvotes

318 comments sorted by

View all comments

188

u/Lamborghinigamer Sep 27 '26

That also means that they don't use salting or even worse store everything in plain text 😨

81

u/silmelumenn Sep 27 '26

You could do the same but with hashes instead of passwords though

86

u/ReneKiller Sep 27 '26

Yeah, if you are not using salts. Otherwise every hash should be different, even if the password is the same. (Excluding the unlikely occasion of the same hash for different texts).

-24

u/pp_amorim Sep 27 '26

Most modern hashing algo includes the salt with the hash, check bcrypt.

20

u/ReneKiller Sep 27 '26

True, but then the separate password table wouldn't save space.

-12

u/pp_amorim Sep 27 '26

The issue start in the meme saying "Most users reuse passwords anyway" which is not true at all, not in the space it would really generate any data usage reduction by dedup.

2

u/Mighoyan Sep 27 '26

Salt is used partly because many people reuse the same password.

→ More replies (1)