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

No Stupid Questions

46340 readers
462 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 27 comments
sorted by: hot top controversial new old
[–] HubertManne@piefed.social 4 points 32 minutes 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.

[–] asmoranomar@lemmy.world 31 points 3 hours ago (2 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.

[–] 14th_cylon@lemmy.zip 8 points 1 hour 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 😂

[–] asmoranomar@lemmy.world 4 points 44 minutes 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.

[–] ageedizzle@piefed.ca 2 points 37 minutes ago

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?

[–] halcyoncmdr@piefed.social 1 points 48 minutes 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 1 points 38 minutes 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 1 points 25 minutes 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 4 hours ago

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.

[–] Skyrmir@lemmy.world 24 points 4 hours 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 12 points 3 hours 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 16 points 3 hours ago (2 children)
[–] Kolanaki@pawb.social 12 points 3 hours 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 16 points 3 hours ago

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 1 points 2 hours ago

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

[–] DomeGuy@lemmy.world 6 points 3 hours 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 1 points 1 hour ago

You can never step in the same river twice!

[–] floquant@lemmy.dbzer0.com 4 points 3 hours 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 4 points 1 hour ago* (last edited 1 hour 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 2 hours 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.

[–] CallMeAl@piefed.zip 8 points 4 hours 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.

[–] DeathsEmbrace@lemmy.world -4 points 3 hours ago* (last edited 3 hours ago) (2 children)

locks arent useful majority can be broken with the right lockpick. Also they mass produce them with variations so that they dont work on another you would find it hilarious how easy one lock can have multiple key configurations by changing the math behind the pins and keys. It’s more to prevent someone doing it easy and just opening the door than an actual burglary. This is one of those inventions that prevents opportunistic behaviour

[–] DomeGuy@lemmy.world 7 points 3 hours ago (2 children)

The utility of a lock is that it's a clear permission barrier. If you don't have the key and bypass the lock, it's clear at least to you that you aren't using a key. Which can be the difference between ordinary trespass and burglary.

[–] TheFogan@programming.dev 3 points 3 hours ago

2 fronts I'd say.

  1. Yeah it makes it clear someone breaking in, was doing the effort to conciously get into something that he wasn't permitted to rather than just, opened the wrong door.

Also would point out, low knowledge low effort crooks, really 9/10 situations there's an easier way to get in than the lock. Your house is far more likely to be broken in by someone smashing a window rather than picking a lock.

[–] DeathsEmbrace@lemmy.world 2 points 3 hours ago (1 children)

You would be surprised at how much opportunity based situations leads to crimes being committed and that opportunities are more important than the crime itself

[–] DomeGuy@lemmy.world 2 points 2 hours ago

While I certainly don't want to argue about the wisdom of preventive measures towards petty crime or dangerous outcomes, i think it's worth knowing that even trivially surpassed barriers can alter what recompense or punishment can be provided from a court of law.

For example: There was a big copyright infringement case against an AI company recently, which ended in a settlement of a few thousand dollars per registered work so infringed. Authors whose work wasn't registered were not eligible for the same amount, because the law limits how much they can recover if a work's copyright wasn't registered.

[–] floquant@lemmy.dbzer0.com 2 points 3 hours ago

Right tools and skills, which is an important part. Just buying the appropriate pick won't magically make you able to open a disc detainer lock, but sure, wafer pins locks can literally be opened by randomly sticking a paperclip in it and using a tensioner.