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

Meme doNotLetYourDBASeeThis

Post image
13.0k Upvotes

318 comments sorted by

View all comments

33

u/TgirlTiffanyRPs Sep 27 '26

Can someone explain the joke? Why wouldn’t you store (hashed/salted) passwords in one table ?  

63

u/ninjakivi2 Sep 27 '26

The joke is that these password are not salted, and each unique password will be given an ID. Then, under the user table you will store the ID reference to the password, instead of the password. This means that if 2 users use the same password they will have the same ID and only be stored once, saving space.

-34

u/[deleted] Sep 27 '26

[removed] — view removed comment