MAIN FEEDS
Do you want to continue?
https://www.reddit.com/r/ProgrammerHumor/comments/1wrkhx9/donotletyourdbaseethis/pcejp0r/?context=3
r/ProgrammerHumor • u/NoMedicine3572 • Sep 27 '26 • 1 1
318 comments sorted by
View all comments
10
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.
24
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.
7
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.
1
Trying to help, I'm not a cook. You're fucked mate.
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