r/ProgrammerHumor • • 19d ago

Meme doNotLetYourDBASeeThis

Post image
13.0k Upvotes

316 comments sorted by

4.9k

u/Away_Advisor3460 19d ago

Pff, amateur hour.

If you really want to save space, don't store any passwords. Just require the same string to be entered three times in a row. If the user re-types the exact same value after being told it's wrong twice, the must be confident enough in it to be a legit user - nobody is going to enter the same value 3 times if they're trying to guess a password.

1.3k

u/DatBoi_BP 19d ago

I think this gets into Goodhart's law, but unironically I think this would work for a bit lol

211

u/Reasonable-Job4205 19d ago edited 19d ago

Elaborate on Goodharts law

418

u/DeveloperBRdotnet 19d ago

Brute force attackers will move on, while the real users will keep trying

153

u/DatBoi_BP 19d ago

Well my nod to Goodhart's law is implying that, if this security practice were implemented, brute force strategies would quickly learn of it and evolve to just…easily get in with doing "AAAAAAAAAa1!" 5 times

40

u/aNiceTribe 19d ago

It would also only increase security if you had like a, let’s say, 5 strikes rule. And typing the same wrong password multiple times still takes multiple uses. Otherwise it would just be more tedium for humans and the same effect for robots. 

But also, we are designing for yer dad. This would make everything so incredibly much worse. 

12

u/cool-guy1234567 19d ago

This would also severely punish accidentally mistyping lol

3

u/Away_Advisor3460 18d ago

Well, we can mitigate brute force attacks by occasionally responding 'please reset your password' upon the 2nd login attempt.

Storing the username and counting login attempts needs space, so we'll just use a random number generator and make the username an email address.

43

u/Reasonable-Job4205 19d ago

I meant elaborate on Goodharts law

29

u/Whatagoodtime 19d ago

He meant elaborate on Goodharts law

16

u/Reasonable-Job4205 19d ago

I did

15

u/Whatagoodtime 19d ago

I meant elaborate on Goodharts law

13

u/Kosba2 19d ago

Could you elborate

14

u/Reasonable-Job4205 19d ago

Brute force attackers will move on, while the real users will keep trying

→ More replies (0)
→ More replies (2)

17

u/goDie61 19d ago

It only works because no one does it. If there were any common knowledge of the system's existence, it would immediately collapse. If no one knows, though, it probably would do a decent job of identifying legit users.

247

u/bartekltg 19d ago

I would start doubt myself. Maybe this letter was uppercase. Maybe that second a was turned to 4...

21

u/bartekltg 19d ago

More seriously, just like in this joke: https://www.reddit.com/r/ProgrammerHumor/comments/1au0z6f/bruteforceattackprotection/

it fails for people who use password managers. If the autocompleted password didn't work, you rather do not retry.

20

u/laksemerd 19d ago

Then you didn’t deserve to get in anyways

110

u/BobRossTheSequel 19d ago

From my experience, some websites are doing this already.

What do you mean I haven't typed that yet? That's what I thought my password was to begin with!

115

u/vagrantprodigy07 19d ago

My favorite is when it tells me my password is wrong, I clicked the reset password link, try to reset it to what it just told me was the wrong password, and it tells me I can't use that, because it's the same as my current password.

65

u/[deleted] 19d ago

[removed] — view removed comment

35

u/StopReadingMyUser 19d ago

Oh no, not my tostino's pizza rolls rewards account :(

19

u/DragonflyLogical8371 19d ago

Ohhhhhhhhhhhh that makes sense. This literally just happened to me

2

u/SAI_Peregrinus 19d ago

If the password reset tells you your password (instead of generating a temporary password) it implies they're storing the passwords insecurely.

→ More replies (2)

42

u/Merimerlock 19d ago

Thought so too before using a Password Manager. Since then: no retry

42

u/suskio4 19d ago

Then how do you explain:

  • enter password, set to visible
  • copy it, click login
  • wrong password
  • paste the same password, click login
  • correct password

Literally happens to me on some websites

30

u/Runiat 19d ago

Someone screwed up while trying to stop you from copying the password out of the password field and interpreted ctrl+c as a character input.

→ More replies (3)

6

u/BlindedByNewLight 19d ago

I have some websites which won't take my password from my password manager, while on mobile..but only some times. other times it works just fine.

3

u/xehpuk 19d ago

Some other internal error occurred, but the default error handling for everything is to return "wrong password".

3

u/Snowenn_ 19d ago

This happens on one of our own (software development firm) website due to the browser sometimes thinking it has a session, while the server has restarted and doesn't have a session anymore. On the first login attempt it will produce an internal error related to the session mismatch. The second attempt works fine, because the browser and server have negotiated a new session.

The reason we don't tell the user there was an internal error is to give as little information as possible to potential hackers. So every error basically gets turned into "wrong password".

I'm the back-end developer, so it's basically not my problem. I tried googling on how to fix it, but couldn't find a solution. The front-end developer is not experienced enough to fix it either. And since the website is only used for employees (of which we have 5), it's just never fixed.

2

u/ILikeBubblyWater 19d ago

Copying often attaches invisible characters

2

u/boothin 19d ago

Too much javascript doing random shit, possibly. I ran into something strange trying to fill out a form with my name and address. I type in my information, go to next screen, the next screen only had the first character of each field. Go back, re-enter the information, go to next screen, this time it has between 1-3 of the characters for each field. Go back again...copy and paste my information in, go next and it was fine. I'm guessing they were doing some sort of validation on the text field changing and messing things up as you type, so changing the field all at once made it work fine.

12

u/HildartheDorf 19d ago

Invalid password.

Forgot password?

Your password can not be the same as the previous password.

(Its almost a haiku)

→ More replies (1)

14

u/ric2b 19d ago

Since we're trying to save storage space we don't want to store the number of attempts, so maybe just let them in if they try to reset the password, who would do that if they don't control the associated e-mail?

9

u/Death_God_Ryuk 19d ago

Some systems don't even take passwords at all now and just use email login links.

2

u/ric2b 19d ago

True, they're really annoying.

5

u/m_redditUser 19d ago

number of attempts is stored in memory on the client side

2

u/ChalkyChalkson 14d ago

If we're doing that might as well store the password client side. Along with all information about their user like groups.

→ More replies (2)

20

u/yp261 19d ago edited 19d ago

three times may be a bit excessive but two times would be a good defense against brute forcing 

11

u/phl23 19d ago

But not against people guessing passwords. Three times is good

4

u/mheyman0 19d ago

Joy. The return of security by obscurity to prod.

3

u/pmadhav97 19d ago

Same reason why after entering username, you'll get a code sent to email to login. Im too lazy for that

3

u/characterfan123 19d ago

If I mess up my bank's PW twice, I'm doing password recovery. Because if I mess it up again, I'm likely to need to wait something like a whole weekend to talk to a human to unlock it.

and yeah. turned out eventually it was a bad keyboard was messing up my entry

3

u/malsomnus 19d ago

"Are you SURE that that's your password?" popup.

2

u/Skibur1 19d ago

Add a cherry on top of that- have the user reevaluate captcha every attempt!

2

u/BitterCommission3987 19d ago

As a password manager user, this would drive me crazy.

2

u/WiredOrange 19d ago

I work in Cyber Security. I can confirm most threat actors only give an account 2 attempts then move on.

→ More replies (6)

2.1k

u/as-if-spike 19d ago

663

u/[deleted] 19d ago

[removed] — view removed comment

228

u/Kihino 19d ago

Security nerds hate this one simple trick

61

u/Pedry-dev 19d ago

Security nerds don't participate in the investor's meeting anyway

14

u/Theron3206 19d ago

Not until after the first major data breach hits the news anyway.

71

u/A1oso 19d ago

It wasn't compliant before if the passwords were stored in plain text.

50

u/ItWearsHimOut 19d ago

Could be hashed, but unsalted.

47

u/git_push_origin_prod 19d ago

Just like my breakfast potatoes

17

u/SkollFenrirson 19d ago

You monster

10

u/Procrasturbating 19d ago

Had to teach my team about salts when I saw similar ratios of reused passwords. Wild. Billion in revenue a year.. and I see it company after company. No cares until there is a breach.

3

u/Theron3206 19d ago

Theres a salt, its just the same one for every password (that how it's supposed to work right).

3

u/Ivanovi4 19d ago

Could be hashed but peppered 🌶️

3

u/za72 19d ago

pm Ur deets - I'll certify you

→ More replies (1)

160

u/Kihino 19d ago

Why stop there when one can use semantic vectors instead of hashes, only store cluster averages and then do similarity matching instead of equivalence checks. Will bring storage way down and have the added benefit of not requiring you to know which exact version of your default password was used, as long as you get the gist of it!

124

u/DERPYBASTARD 19d ago

That sounds complicated, we can just approve every login attempt

66

u/Kihino 19d ago

big if True

16

u/Some1-Somewhere 19d ago

*groan*

8

u/Kihino 19d ago

Why thank you

48

u/Tupcek 19d ago

that is too easy for scammers.

Log them in only if they enter same password three times. That means they are fairly confident it’s their password

16

u/Auravendill 19d ago

Great, we can just do the check client side and save a lot of server and bandwidth load.

18

u/ellamking 19d ago

I am currently out of the office until October 3rd and will be unable approve any login attempts until that date. Sorry for any inconvenience that has caused.

Betty

5

u/LaconicLacedaemonian 19d ago

That's a bit risky. Let's add a flag we can trusted=true clients set with each api call to certify they are only valid traffic. 

3

u/yarntank 19d ago

Why make the trusted clients do the work? Make a policy that non-trusted clients use the evil bit.

https://www.rfc-editor.org/info/rfc3514/https://www.rfc-editor.org/info/rfc3514/

9

u/YeOldeMemeShoppe 19d ago

``` Hey Claude, does this password match your memory? “$1”

Only answer Yes or No. ```

4

u/Key_Big1051 19d ago

I have Zero idea what I read

17

u/Kihino 19d ago

Imagine an AI looking at passwords and determining whether they mean the same thing. Eg Hunter2, hunter2, HuNtEr2 all have the same meaning, albeit different spelling. This meaning can be represented as a vector, and these vectors can be clustered so we say a user has simply a password that is essentially “something like hunter”. When a user types in their password, you can then check if that password is indeed “something like hunter”. If so, you admit them otherwise reject it.

12

u/Armond436 19d ago

It's been 22 years and hunter2 is still going strong. Bless.

11

u/ProfessorLambda 19d ago

"*******" is going strong? What does that mean? Did you censor your own post?

11

u/almostcleverbut 19d ago

The real savings comes from no longer having to ask them for a username... just have them type the password and choose the most likely user account based on the password's semantic similarity score.

Ties are randomized to defeat distinguisher-based attack methods, obviously

3

u/confusedkarnatia 19d ago

that would be a fun forum. you log in and get a random users account.

→ More replies (2)

5

u/YeOldeMemeShoppe 19d ago

Think of how Shazam matches songs, but for passwords. “Close enough” is the answer to the algorithm.

4

u/aammirzaei 19d ago

read about vector database / embeddings it's got really popular recently becuase llms and ai

2

u/FindOneInEveryCar 19d ago

Sounds like a dream come true.

4

u/Kihino 19d ago

Honestly, better UX

2

u/DasAllerletzte 19d ago

That sounds suspiciously like Regex

→ More replies (2)

371

u/Chiccitynotess 19d ago

On the bright side, your database deduplication metrics look fantastic right before the data breach lawsuit

1.1k

u/braytag 19d ago

If you have 100GB of password, you have other problems.....

333

u/Totendax12K 19d ago

the HIBP databse is around 40gb with 1bil+ hashed passwords

214

u/Penki- 19d ago

Then OP in picture must work in Meta on Facebook. Checks out

117

u/ManWithDominantClaw 19d ago

hacking off a limb to save 97GB is more of a twitter move

6

u/mattsl 19d ago

Definitely tracks with the reuse. 

→ More replies (3)

5

u/-Nicolai 19d ago

And presumably contains a lot more columns than just password/key

2

u/Physmatik 19d ago

If you have enough users to fill 40GB of password you probably don't care about 10 extra bucks per month of maintenance.

→ More replies (1)
→ More replies (1)

25

u/therealkevinard 19d ago

Password is your favorite movie.
Upload the dvdrip to register

→ More replies (1)

20

u/zDontTouch 19d ago

Don't you guys use .raw files as password? It is practically self-encrypted!

5

u/Stainlessray 19d ago

I can't fathom why "practically self encrypted" isn't getting more cowbell.

7

u/[deleted] 19d ago edited 18d ago

[deleted]

3

u/Noch_ein_Kamel 19d ago

I'd assume it's all plaintext passwords.

3

u/CocktailPerson 19d ago

Plaintext would be smaller because most passwords aren't 32 bytes long.

In other words, you could fit far more than 3 billion plaintext passwords in 100GB.

3

u/beastrabban 19d ago

Store each char of the password as a separate string variable and connect them using a custom linked list

200

u/Flat_Initial_1823 19d ago

Why use big table when default password do trick

https://giphy.com/gifs/DMNPDvtGTD9WLK2Xxa

37

u/proofrock_oss 19d ago

“INVALID PASSWORD: IT’S NOT ABCDE”

16

u/Tupcek 19d ago

INVALID PASSWORD: THIS PASSWORD WAS ASSIGNED TO PROOFROCK_OSS

→ More replies (1)

3

u/arogon 19d ago

I once worked at a place where I couldn't have a pin with my badge because someone else already had that pin 🙃

2

u/geofft 19d ago

I worked for a small but growing company maintaining an internal system that broke when we hired a 2nd RichardF because the frontend keyed drop downs on first name and last initial.

185

u/Lamborghinigamer 19d ago

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

83

u/silmelumenn 19d ago

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

87

u/ReneKiller 19d ago

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).

→ More replies (8)

28

u/Lamborghinigamer 19d ago

Exactly. Like I said, they don't use salting

7

u/silmelumenn 19d ago

Let's go complex keys (salt, hashcode) 😅

9

u/Lamborghinigamer 19d ago

Exactly. A unique salt guarantees a unique hash every time, so every single user gets a unique row regardless. Deduplicating unique rows with foreign keys is mathematically impossible

→ More replies (16)

15

u/DrDeform 19d ago

If they really wanted to reduce storage then they can do the no passwords and every login requires a temp email code. Those sites really piss me off.

5

u/PlasticExtreme4469 19d ago

Or they misunderstood the purpose of salt and reused it for every password.

2

u/Kymera_7 19d ago

Nah, they're using a random number generator for the salt. They bought it from the company Dilbert works for.

3

u/PixelatedGiant 19d ago

I'm so glad modern hashing algorithms include a random salt within the hash. People used to do it so wrong. You're supposed to create a salt per password, not use a single global one.

→ More replies (1)

2

u/jigsaw1024 19d ago

Maybe his doctor told him to cut salt from his diet?

43

u/zirky 19d ago

security though “wait they can’t be serious, this is a joke, right?”

43

u/reubenbubu 19d ago

Allowing password reuse is a security concern that can be avoided with an easy validation step:

The password you provided is already in use by user /u/NoMedicine3572. Please choose a different password.

33

u/TgirlTiffanyRPs 19d ago

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

59

u/ninjakivi2 19d ago

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.

25

u/Winsaucerer 19d ago edited 19d ago

They could be salted, just not with a per password salt. Which is much less useful, but does still make rainbow table attacks harder.

10

u/bestjejust 19d ago

You mean pepper.

→ More replies (10)

17

u/Great-Powerful-Talia 19d ago

If they're salted, the space saved here is minimal.

There's only lots of duplicate entries (from 2 people using the same password) if they're stored unsalted or in plaintext.

Which is exactly why they need to be salted.

12

u/Agifem 19d ago

No no, they're salted, all with the same salt! It saves space AND you get the safety of a salt! Brilliant!

→ More replies (1)

8

u/tekanet 19d ago

If you have users using password “letmein” (eventually hashed, but not salted), instead of a Password column you can have a PasswordId column referencing by foreign key the record in the Passwords table that contains said password. Since most users choose the same password, you end up with less space used by the foreign key column.

It doesn’t make sense on different levels, but that’s the gist of it.

3

u/amejin 19d ago

It's not the storage of salted passwords that's the problem, it's the shared state via reference.

How do you handle password changes? You also reduce the footprint for attack. 200k uniquely salted passwords are much harder to crack than 500 shared passwords with the same salt.

If we're being fair, though, if someone is reading your rows like this you've already been compromised and leaking email/pw combos is low on your list of problems.

2

u/sarc-tastic 19d ago

Ask Adobe

2

u/laplongejr 18d ago

For those who don't know : https://xkcd.com/1286/

2

u/laplongejr 18d ago

  (hashed/salted) passwords  

"Users are reusing passwords anyway"  

There's not an ounce of salt in there.  

→ More replies (1)

30

u/FalconFiveZeroNine 19d ago

As a DBA who works with devs a lot, I gave up trying to keep them from doing things. They just kick their requests up the corporate ladder until they get their way. Then a few months later it blows up and I get blamed for it.

10

u/DooMRunneR 18d ago

stop trying to prevent it and make it cost something instead. when devs want something dumb, write down the actual risk in the ticket, not just "this is bad" but what breaks and how. if they escalate and get it approved anyway, whoever approves it signs off on the risk with their name on it, plus who owns support when it blows up and when it gets reviewed again. if its a real architecture thing pull in your EAs and get an ADR for it

tbh the paper alone wont save you if your company loves blaming people. what actually helps is sorting out ownership before it goes live. dev team pushed it through? then they get paged at 3am when it falls over, not you. funny how many "super urgent" requests dissapear once someone has to put their name on it and carry the on call for it

27

u/bilus 19d ago

Doesn’t math

7

u/Jutrakuna 19d ago

Cool vibes tho

5

u/ttttrrrr0000 19d ago edited 19d ago

It could, an int FK is 4 bytes, and the table of passwords would be 4 bytes PK + 16 bytes for the unsalted hashed password

So, about 50% larger if everyone's password is unique, and 75% smaller if everyone's password is the same. Breakeven point is at the ratio of 3 unique passwords per 5 people.

→ More replies (2)

3

u/creeper6530 19d ago

Does math if they don't use salting or even store in plaintext

12

u/AggieCMD 19d ago

Forgot your password? Click here to reset everybody's password.

11

u/andlewis 19d ago

Someone isn’t salting or peppering their hashes.

7

u/dvhh 19d ago

maybe with some soy sauce for exotism

2

u/trafalmadorianistic 19d ago

Uncle Roger recommends MSG 

10

u/LogicBalm 19d ago

Gotta enforce security policy though. Unique passwords and extensive password history.

"invalid password, that password is already in use by user witty_kitty69"

4

u/tRfalcore 19d ago

please contact witty_kitty69 to replace your password

6

u/Jazoboz 19d ago

WTF is a salt?? I like my passwords raw!

4

u/blindedtrickster 19d ago

Unseasoned passwords? Sir, I'm afraid we're going to have to ask you to leave.

2

u/FuzzyKittyNomNom 19d ago

Bro is just raw dogging his passwords out here.

2

u/BackgroundRate1825 19d ago

I think we can pepper in some puns if you've got the thyme.

→ More replies (1)
→ More replies (1)

8

u/I_HAVE_THAT_FETISH 19d ago

Just take the password and run it through an algorithm to calculate a salt that hashes it to a pre-determined string!

6

u/-Redstoneboi- 19d ago

sounds computationally expensive. besides, why even store a password? just derive it by hashing the email address with the account creation timestamp and ask the user to save it

2

u/I_HAVE_THAT_FETISH 19d ago

We support password managers, so if the user wants to generate a new password for themself we can regenerate their salt to hit the same fixed hash. That way, if they happen to forget the date of account creation, there's still an option for recovery.

Although... For your method, if the user forgets their password we can generate an entirely new account, which boosts user engagement metrics, so it will probably go over well with management.

3

u/Rikudou_Sage 19d ago

Good idea, that way you can actually control the storage growth! Got some VC funds? Just change a single number in your algorithm and you get more password hash space!

7

u/seanprefect 19d ago

Security architect here, I’m dead now, my heart and head exploded I’m writing this via spiritual medium

6

u/heesell 19d ago

Just send a password to the user their email with each login. No DB storage needed

3

u/2nd-Reddit-Account 19d ago

This is actually a thing, without even bothering with the password.

I use a few services where passwords have been replaced with being emailed a log in button on each sign in attempt, clicking the button in the mail opens a new tab of the site with you logged in.

It’s like sign in with google, but universal across all email providers and domains

→ More replies (1)

11

u/Stummi 19d ago edited 19d ago

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

25

u/Pingumask 19d ago

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)

6

u/Historical-Silver495 19d ago

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

7

u/Pingumask 19d ago

Put a potato in, it absorbs the salt

2

u/SVD_NL 19d ago

That's what hashing is for! Add potatoes to turn them into hashbrowns.

→ More replies (1)
→ More replies (1)

10

u/flingerdu 19d ago

If you have duplicate password strings you have a whole lot of other problems besides using a few additional MB of disk space.

3

u/RavenX86 19d ago

I’m pretty sure fb stored passwords in plain text for years, I wouldn’t worry that much

→ More replies (2)
→ More replies (1)

5

u/yjlom 19d ago

There should be few or no identical strings in this case because you should be storing big_strong_and_government_approved_hash(pw ++ u.name ++ app.name) or something like that, and not just pw

2

u/HRApprovedUsername 19d ago

No I don’t think databases do that typically

→ More replies (3)

3

u/Available_Canary_517 19d ago

Even if password are same , the generated hash is different with a salt so it is useless because you introduced a extra join without any improvement

7

u/CadenVanV 19d ago

I don’t think someone doing this shit is hashing or salting their passwords to begin with

→ More replies (1)

5

u/zx48 19d ago

You can also save another 50% by only storing and validating every other character in the password.

3

u/irn00b 19d ago

And bro - just store the passwords in browser cache. We went from 3gb to 0gb.

Just ask Claude to do it - ez.

3

u/Future-World1780 19d ago

Just don't store passwords at all and simply let the user pass the login at the third attempt.

5

u/-Redstoneboi- 19d ago

this is like 2 steps away from just being a straight up wordlist

4

u/ora00001 17d ago

100 GB to 3GB is not a result of password reuse. That's something else terrible going on.

3

u/wolfjazz93 19d ago

What if I increase my FK by one? 😆

3

u/MSaxov 19d ago

Then users cannot log ind with spring2026! But needs to use the new password summer2026!

3

u/Glum_Cheesecake9859 19d ago

Even better.

if (password == 1234) {

loginUser();

}

this will save 90% of DB hits.

3

u/CoolCat1337One 19d ago

he is talking about password hashes, right?

2

u/Rikudou_Sage 19d ago

You people and your hashes... Just do it like a man and store it unhashed. Or use reversible encryption if you're a pussy.

→ More replies (2)

2

u/laplongejr 18d ago

The whole idea of a random salt is that password reuse wouldn't lead to more collisions in hashes...  

→ More replies (4)

3

u/henryeaterofpies 19d ago

I think this gave me an aneurysm and I am not a dba, security or sys admin

3

u/contentatlast 19d ago

100gb of passwords? How many passwords are you storing lmao

3

u/mittfh 19d ago

Bonus points if the passwords are stored in plaintext...

...on the same machine as the external Web server...

... Which, naturally, uses http (not s)...

... And the Admin/Root password is in one of the "Top 100 passwords exposed by data breaches" lists ("Password123" and friends). 😈

4

u/CLOWNFLOGGER 19d ago

I just write mine under the brim of my Yankees hat, like every other responsible Gen X dude.

3

u/CDavis10717 19d ago

Retired DBA Mgr here. I’ve had security audits where an auditor sat next to me, told me what db tools to use, what tables to select and screen cap, paste the caps into an email to them and sent it, all in their presence.

This overly normalized password management method will never pass a true security audit.

→ More replies (4)

2

u/ICantBelieveItsNotEC 19d ago

A SQL database isn't going to scale. I suggest creating a new Password Service microservice backed by DynamoDB that allows the User Service to upset and retrieve passwords by ID.

3

u/unexpectedreboots 19d ago

dynamoDB

but mongo is web scale.

→ More replies (1)

2

u/the_millenial_falcon 19d ago

How to make hash collisions work for you.

2

u/jaavaaguru 19d ago

Signed,

Bobby Tables

2

u/Randy191919 19d ago

How many users do you need to have have 100GB of passwords?

→ More replies (2)

2

u/cosmicomical23 19d ago

As long as they are encrypted

2

u/BungalowsAreScams 19d ago

My company just barely fixed the fact that we were required to have a password be exactly 8 characters long and they weren't even case sensitive for one of our internal tools. Idk how something ends up like that

2

u/Effective-Giraffe655 19d ago

"You can't use this password. This password is used by user Joe"/s

2

u/PrometheusMMIV 19d ago

You have over 97 GB of passwords? Even at 12 characters, that's over 8 billion users. And that's just the repeated ones.

→ More replies (1)

2

u/North_Affect_8167 19d ago

Make a selection of 3 allowed passwords and forget about the whole database thing, the most users should use 2-factor auth anyway.

2

u/OhioGoblin43 19d ago

Great idea. I'll use their username as the primary key since they're unique.

2

u/Prata2pcs 19d ago

Rainbow tables with purpose

1

u/DreadedTuesday 19d ago

"Data De-Duplication"

1

u/norwegian 19d ago

They probably means hashes, bc storing passwords is a lawsuit waiting to happen.

1

u/bradland 19d ago

I mean, your DBA is thrilled. Your ITSec team, however...

1

u/PlusIndication8386 19d ago

Noobs... Use trie data structure for better efficiency

1

u/01BADSEED 19d ago

What the...what?