this post was submitted on 09 Feb 2026
85 points (100.0% liked)

No Stupid Questions

46380 readers
751 users here now

No such thing. Ask away!

!nostupidquestions is a community dedicated to being helpful and answering each others' questions on various topics.

The rules for posting and commenting, besides the rules defined here for lemmy.world, are as follows:

Rules (interactive)


Rule 1- All posts must be legitimate questions. All post titles must include a question.

All posts must be legitimate questions, and all post titles must include a question. Questions that are joke or trolling questions, memes, song lyrics as title, etc. are not allowed here. See Rule 6 for all exceptions.



Rule 2- Your question subject cannot be illegal or NSFW material.

Your question subject cannot be illegal or NSFW material. You will be warned first, banned second.



Rule 3- Do not seek mental, medical and professional help here.

Do not seek mental, medical and professional help here. Breaking this rule will not get you or your post removed, but it will put you at risk, and possibly in danger.



Rule 4- No self promotion or upvote-farming of any kind.

That's it.



Rule 5- No baiting or sealioning or promoting an agenda.

Questions which, instead of being of an innocuous nature, are specifically intended (based on reports and in the opinion of our crack moderation team) to bait users into ideological wars on charged political topics will be removed and the authors warned - or banned - depending on severity.



Rule 6- Regarding META posts and joke questions.

Provided it is about the community itself, you may post non-question posts using the [META] tag on your post title.

On fridays, you are allowed to post meme and troll questions, on the condition that it's in text format only, and conforms with our other rules. These posts MUST include the [NSQ Friday] tag in their title.

If you post a serious question on friday and are looking only for legitimate answers, then please include the [Serious] tag on your post. Irrelevant replies will then be removed by moderators.



Rule 7- You can't intentionally annoy, mock, or harass other members.

If you intentionally annoy, mock, harass, or discriminate against any individual member, you will be removed.

Likewise, if you are a member, sympathiser or a resemblant of a movement that is known to largely hate, mock, discriminate against, and/or want to take lives of a group of people, and you were provably vocal about your hate, then you will be banned on sight.



Rule 8- All comments should try to stay relevant to their parent content.



Rule 9- Reposts from other platforms are not allowed.

Let everyone have their own content.



Rule 10- Majority of bots aren't allowed to participate here. This includes using AI responses and summaries.



Credits

Our breathtaking icon was bestowed upon us by @Cevilia!

The greatest banner of all time: by @TheOneWithTheHair!

founded 2 years ago
MODERATORS
 

It’s my understanding that mass produced items are all basically the same. If you buy something like a toothbrush, for example, then any other toothbrush from that same assembly line is going to be basically the same and have all the same specs (with the exception with minor defects here and there), because the machinery and process to make any those toothbrushes are all basically the same.

But that can’t be the case with locks and keys. Because if every lock and key were the same then there’d be no point in having them. Anyone could just bought the same key/lock combo could use it to unlock your front door. So all or most keys and locks must be unique. So how are they mass produced in a way that preserves their uniqueness?

top 50 comments
sorted by: hot top controversial new old
[–] VerilyFemme@lemmy.blahaj.zone 6 points 1 day ago* (last edited 1 day ago) (1 children)

Modern locks utilize sets of spring-loaded brass pins to function.

As seen in the diagram, the key raises the bottom pins in the pin stack to the shear line so that the cylinder plug may turn, activating or deactivating the locking mechanism.

These pins come in different lengths, and can be swapped out to change the key. That's how they mass manufacture locks that aren't all on the same key. It's the same line for lock cylinders, but they use different pins and keys in assembly.

That said, there are only so many combinations of depths a key can have. Most residential keys have 5 cuts, and each cut has around 7 possible depths. So, the combinations aren't infinite but they are varied enough that a large residential area, all using the same type of lock, shouldn't have any repeats. And if it does, who's going around testing their key in every door?

A lock only keeps an honest person out. The point of a lock is to make it too much of a hassle for a potential thief to bother breaking in.

[–] ageedizzle@piefed.ca 1 points 16 hours ago

Thanks for your response. The image really helps make the mechanics behind it clear

[–] asmoranomar@lemmy.world 51 points 1 day ago (5 children)

Actually, a lot of locks ARE the same. I lived in a brand-new complex years back, and everyone had the same lock and key. It didn't take long for some kids to start breaking into other people's houses, and since it was all under HOA owners couldn't just buy mismatched locks.

Then when I bought a 10 yr old home later, I was sitting at the house when some maintenance crew unlocked my door and walked right in. They tried to tell me I was squatting and it wasn't until they realized they were to do work on my neighbors house. Went and checked with other neighbors and found out a handful of us all had the same keys of about 4 varieties. Ironically, there were even two families that knew this before then and they told us how they bought new locks - and found out that those too were the same key.

So basically, if you buy a new lock, you should have it checked by a locksmith and rekeyed if needed.

[–] Treczoks@lemmy.world 2 points 1 day ago

When my wife and i moved into a flat, I noticed the lock was nearly done for. So I exchanged the cylinder with something that was a real quality lock, and gave the landlord a copy of the key in a sealed case.

When we moved out, I informed the landlord that we had exchanged the lock because it was busted, and i would replace the current lock anyway - if they provided a new cylinder i would install it for them. They declined and insisted that I install the original lock. They didn't test it, and had to get a locksmith...

[–] 14th_cylon@lemmy.zip 33 points 1 day ago (2 children)

and since it was all under HOA owners couldn’t just buy mismatched locks.

as an european, i always roll my eyes at the concept of hoa, but this is definitely wildest i have seen in this context 😂

[–] ageedizzle@piefed.ca 6 points 1 day ago (1 children)

Yeah even for HOA standards this seems crazy though. Like, not being allowed to change your lock? That seems like a massive security risk. Especially given the circumstances. Why does the HOA even care do they need access to everyone’s place?

[–] asmoranomar@lemmy.world 2 points 1 day ago (2 children)

They don't, they just didn't want some regular old locks on some doors mixing with their fancy locks they overpaid for that matches all the other units.

[–] deafboy@lemmy.world 2 points 1 day ago

I am still confused. Aren't locks modular and easily swappable on the other side of the ocean?

This is how they look here. You can just swap it without changing the looks of the door in any way.

[–] asmoranomar@lemmy.world 6 points 1 day ago

Yeah, but they were somewhat reasonable about it. You could get new locks to prevent break-ins, but it took them a very long time to figure out what they were going to do. It was all brand new and the locks technically worked, so I guess they had to have meetings to figure out if they needed to sue or to buy new locks, change the design....or whatever the HOA does. They ended up telling everyone to keep their old locks and I think they just rekeyed them? I left during all that mess (not for that reason) so idk.

[–] thermal_shock@lemmy.world 2 points 1 day ago* (last edited 1 day ago) (1 children)

Weird they didn't just rekey the cylinder instead of a whole new lock and setup.

[–] asmoranomar@lemmy.world 1 points 1 day ago (1 children)

I don't know the outcome, I left shortly after. People owned these units, HOA can force a particular style of lock to match all the other units, but they can't bust into homes and force homeowners to change their locks. How each homeowner resolved the issue wasn't their concern, but I do think they hired a locksmith as a courtesy. It just took HOA a long time to figure out what to do.

[–] thermal_shock@lemmy.world 1 points 1 day ago* (last edited 1 day ago)

I'm in an HOA, I know their bullshit.

Its a condo, so not a lot we can do outside our door. BUT, I put a custom doormat, after going through the rules and seeing nothing about that, at all. Got a notice I had to change it, said "please show me where in the rules, it specifically states it's the only thing I can customize". Never heard another word about it.

They provided cheap rubber ones, and the rules said if we lost it we could get another for $25. It never said anything about trashing that one and putting my own.

Got a door cam because the unit across kept leaving trash in the hall. Found out owner was renting it as an Airbnb, so when they complained about my camera I replied with why I have it. Not another word about it.

I understand there are rules, but there are also legit reasons for certain things that break the rules, case by case. Will not buy into another HOA home

[–] ColeSloth@discuss.tchncs.de 4 points 1 day ago (1 children)

Most apartment locks and such are made for the purchaser to be able to easily and quickly re-key. You set it to be rekeyed, put a cut key in, and then lock the key pattern for it in place. Takes like 5 minutes or less. That way every time someone moves out you can keep things secure without replacing the lock.

In your case, the building manager was just a lazy fuck.

It is common for lock makers of normal locks to do production runs of just like 50 different key sets.

[–] asmoranomar@lemmy.world 3 points 1 day ago* (last edited 1 day ago)

There was a building manager (if it could be called as such) but they were responsible for coordinating mandatory inspections (fire hazards, alarms, etc) and common areas. They were absolutely not responsible for keys. Not all places are the same.

Edit: Should also mention people owned these properties, it wasn't rental apartments.

[–] halcyoncmdr@piefed.social 5 points 1 day ago (1 children)

New locks usually tell you what key set they are on the package... So you can buy multiple of the same lock to rekey an entire house.

While the locks can be rekeyed to thousands of options, the prepackaged options will only be a few sets.

[–] asmoranomar@lemmy.world 3 points 1 day ago (1 children)

Yeah, and I think when homes are manufactured they just buy sets in bulk. One would think they would rekey them, but I guess not. I mean, even if they were, you should rekey your locks in any new home anyways - but even I fell victim to that because despite knowing this, no one ever does, and it happened twice. You think one would learn.

[–] halcyoncmdr@piefed.social 2 points 1 day ago

They won't bother rekeying, but they normally are buying enough that different sets are inevitable even if they don't actively try.

[–] Steve@communick.news 50 points 2 days ago (1 children)

This video explains how standard locks work.

Basically all the parts of the lock are mass produced. Only the pins are unique. And they're aren't actually unique, just the combinations of pins are.

[–] Valmond@lemmy.dbzer0.com 3 points 1 day ago

Loads of keys are also the same, there are just enough different keys to make it work.

Some are maybe all unique, I don't know. What I do know thougjmh is that it's almost as quick and easy to lock pick simple locks than it is to use the correct key.

[–] lovely_reader@lemmy.world 18 points 1 day ago* (last edited 1 day ago)

When you buy keyed doorknobs and deadbolts, there's sometimes (always?—not sure, but def sometimes) a sticker on each package with a code. This lets you look through the available inventory to find and buy additional locks with the same code so that if you need multiple locks for the same house, they can all use the same key.

So no, as others have said, mass produced locks aren't unique, but sometimes that's a benefit.

Edit to add: it's okay that locks aren't unique, because the lock itself isn't really what keeps people from entering locked doors. Mostly it's the social contract. Your house key might unlock several houses in your neighborhood, but you're not gonna try it, because how would you explain yourself if you got caught? And if you weren't worried about that, then you'd probably be okay with just smashing the window...which means that for someone who would violate it, the lock is moot.

[–] Skyrmir@lemmy.world 22 points 2 days ago

Each tumbler has 4 to 6 sizes in 3 to 6 holes. They set the combination, then cut the key and put the matching tumblers in a standard housing.

Half the security on most locks is that it's hard to get tools in the tiny slots. The actual number of combinations is small, but difficult to scan through.

[–] YurkshireLad@lemmy.ca 11 points 1 day ago (1 children)

I don’t know the answer but there’s a guy on YouTube who easily opens all locks, sometimes by just hitting two together or by insert part of a beer can to, well I’m not even sure what to call it. It’s interesting stuff.

[–] Cawifre@lemmy.world 15 points 1 day ago (2 children)
[–] Kolanaki@pawb.social 11 points 1 day ago (1 children)

There's another one that popped up pretty recently that almost never uses real locksmithing tools, and just makes a shim out of an aluminium can real quick to pop open a lock. They got Streisand Effect'd by some lock company trying to claim his videos are bullshit becsuse he frequently shows how that particular brand of lock sucks ass.

[–] hoshikarakitaridia@lemmy.world 19 points 1 day ago (1 children)

McNally v Proven Locks

Is probably what you're talking about. And apparently Proven Locks is mostly a shit show with one ok product and full of "hurrdurr American patriot" marketing.

[–] YurkshireLad@lemmy.ca 3 points 1 day ago

Yeah I think it's McNallyOfficial.

[–] YurkshireLad@lemmy.ca 1 points 1 day ago

It’s possible. Sorry I can’t remember the name.

[–] DomeGuy@lemmy.world 10 points 1 day ago (1 children)

Mass produced items are not all the same. They are merely similar, and can have whatever variations the bulk manufacturing process requires or allows.

Not every car made on the same assembly line on the same day had the same options, and near every cake baked in a mass bakery will have a distinct internal structure.

[–] homesweethomeMrL@lemmy.world 3 points 1 day ago

You can never step in the same river twice!

[–] CallMeAl@piefed.zip 6 points 2 days ago

Most of the parts of a lock are the same. However, the small internal parts, like pins and springs, are variable and can be changed out, usually by a locksmith. Those are the parts that require a matching key.

[–] XeroxCool@lemmy.world 0 points 1 day ago (2 children)

"Made on the same assembly line means it's the same product" is a myth from people who have no experience in manufacturing/sourcing and are just mad about inflation and do not have a professional interest in the product. The specs are rarely the same. There are often typically significant differences in material, tooling, QA/QC, and warranty. Yes, there are plenty of examples where the upcharge is not justified, but it's neither the rule nor the exception. It varies wildly across the market. I have my places where I buy premium, I have my places where I buy bottom tier.

For the common end user of household products, the closest they'll get to understanding this is buying the Amazon, Alibaba, or Temu "version" of something. There will be a dozen differences that make the product worse. Maybe that's fine for your use. If you think all toothbrushes are the same, try the free ones from a hotel. The handles are small, weak, and usually have sharp mold parting lines. But sure, they were likely made at the same place that made the $6 Colgate because the bristle-placing machine is the most important part of the process.

Meanwhile, towards the other end, a casual household end user will likely never exceed the capability of a hardware store wrench, so they'll think it's insane to pay more for a Snap-on at 4x the price. But it makes a difference to someone using and abusing it 8x a day, depending on its function to get paid. If it does break, the warranty replaces it immediately. Lifetime warranties from non-professional brands are notorious for stating it's the lifetime of the product, not your lifetime, and it expired when it broke or wore out.

At the extreme end would be something like aircraft parts. The "same" bolt at the local store is 1/20 the price. But the aircraft bolt is a higher grade (more expensive), has much tighter tolerances (more money spent on control, higher scrap rate), has backing traceability documentation (money spent on labor and tracking systems), and is likely checked 100% to dimensional spec (money spent on labor and time). You could find the same bolt at the store. You will find a bolt that's almost the same. You may find a bolt that's completely wrong. None of that uncertainty is allowable in an aircraft bolt. Those "minor defects here and there" like your toothbrush claim are not acceptable, so systems must be in place to prevent them from escaping. You order a bolt, you get the bolt you ordered. Hundreds of lives depend on it.

[–] FluorineBalloon@programming.dev 3 points 1 day ago (1 children)

If that's not an AI response, then you really just took the time to write an essay answer to a completely different question than was asked...

[–] XeroxCool@lemmy.world 2 points 1 day ago (1 children)

You're welcome to that interpretation. I saw no point adding a 20th version of the same answers everyone else focused on. I went after the opening statement.

While I feel like your post was off topic, it was not kind of me to reply to you with such rudeness, and with the accusation of being ai. I should not allow my annoyance with the prevalence of ai in nearly every aspect of life lately to cause me to be kind to my fellow humans. I'm sorry for my attitude, and thankful that you and others contribute to the fediverse even when I don't understand or misinterpret it.

[–] Slein4273@feddit.org 3 points 1 day ago (1 children)

I think you forgot to answer the question

[–] XeroxCool@lemmy.world 1 points 1 day ago (1 children)

No point saying the same thing already stated 20 other times here. I went after the opening statement because it's demonstrably inaccurate

[–] ageedizzle@piefed.ca 1 points 1 day ago (1 children)

“Made on the same assembly line means it’s the same product” is a myth from people who have no experience in manufacturing/sourcing

You’re right, I have absolutely no experience in manufacturing or sourcing. If I did, then I probably wouldn’t be posting to ask about it on /nostupidquestions

[–] XeroxCool@lemmy.world 1 points 1 day ago

I didn't say you or your question was stupid. I explained why that assumption isn't right

[–] HubertManne@piefed.social 3 points 1 day ago

Im pretty sure its like hardware mac addresses and there is a lot of variety but not endless. Im like 99% sure a key from a lock can open a bunch of other locks sold but its really unlikely to open a lock sold at the same store. Anyway as for the how our modern mass production machinery has electronics and can be programed to things a bit differently based an a database or some math or such.

[–] floquant@lemmy.dbzer0.com 3 points 1 day ago (2 children)

Side question: does anyone know if manufacturers rely on entropy to get the required randomness or if they "enforce" patterns by selecting and directing pins?

[–] dbx12@programming.dev 11 points 1 day ago* (last edited 1 day ago)

There are actually "rules" about which pins may go into which positions. For example, you don't want a very short pin (resulting in a "thick part" on the key's blade) in the first position (closest to the bow, the part you are gripping on a key) and then only longer pins the further you move towards the tip. If you had such key, you could remove it from the lock while the plug is turned as only deeper cuts (for longer pins) are encountered by the first pin. And a deeper cut can take a shorter pin without issues. That's why you don't see keys with a "staircase pattern".

Another limitation is MACS (maximum adjacent cut specification), which governs which cut depths may be adjacent. When you insert a key, the pins ride up and down the cuts on the key. If you were to put a super deep cut next to a super shallow cut, the "slope" gets too steep and the key is hard to insert or remove. This means if you know the depth of one cut and the MACS for this model of lock, you can rule out certain cut depths for its direct neighbors. For example, you know that the key you want to forge has a very deep cut, let's say depth 8, on a particular position. Since we know the model of the lock (the professionals recognize a lock just by looking at the keyhole), we know that MACS is 5 and the deepest possible cut is a 9. The direct neighbors of our 8 can be either a 9 or anything from 7 to 3. They cannot be 1 or 2 since that would violate the MACS and repeating the same depth is also very unusual, so we can rule out 8.

Now add manufacturing tolerances into the equation and the potential key space is getting even smaller.

Edit yes, locks are a great thing to nerd out about.

[–] Urga@lemmynsfw.com 1 points 1 day ago

Since in some cases the wrong key can open a lock, and there are not even unique locks made over the production history of a product, I'd say no. This is not cryptography in most cases.