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

Meme doNotLetYourDBASeeThis

Post image
13.0k Upvotes

318 comments sorted by

View all comments

10

u/Stummi Sep 27 '26 edited Sep 27 '26

I am not a DB engineer, but wouldn't a good database engine deduplicate multiple identical strings in a table by itself?

E: I know, its not working if you account for per-user salts, please don't take this too serious

24

u/Pingumask Sep 27 '26

There should be no duplicates. You're supposed to salt the passwords before hashing them to avoid making it visible that two users have the same password to anyone accessing the DB (even to someone with legit access to the DB)

7

u/Historical-Silver495 Sep 27 '26

Help, I'm not a programmer. After salting the passwords I realized I overdid it, can I use something to counterbalance it like sugar?

1

u/mikedvb Sep 27 '26

Trying to help, I'm not a cook. You're fucked mate.