• Curse Sites
Help
Latest News Article

# 4 Button (6 Digit PIN) Combination Lock (~14x17x6)

112 replies to this topic

### #1

wishiwasonmaui

Posted 15 March 2011 - 11:09 PM

This is a very compact symmetrical array that easily expands to accomodate more buttons or a longer pin. Code must be entered in order of course. Any wrong number resets everything.

MCEdit Schematic: http://www.mediafire...74ezyyi56z6ieo3

Video Demonstration:
6Jqfvan-o2E

Step by Step Tutorial:
E6kjfTY2X44

### #2

xNightmare

Lapis Lazuli Collector

• Members
• 1199 posts
• Location: Australia, Tasmania
• Minecraft: xNightmare

Posted 15 March 2011 - 11:10 PM

If only it were compact. D:

xNightmare

### #3

wishiwasonmaui

Posted 16 March 2011 - 03:05 AM

xNightmare said:

If only it were compact. D:

Got something better? Let's see it.

### #4

elmeerkat

Posted 16 March 2011 - 03:23 AM

thats pretty damn compact. good job

### #5

thathippoguy

Posted 16 March 2011 - 03:44 AM

Too bulky for my taste but good job I am about to try and learn redstone wire computing again

### #6

wishiwasonmaui

Posted 16 March 2011 - 08:35 AM

thathippoguy said:

Too bulky for my taste but good job I am about to try and learn redstone wire computing again

I don't get you guys. Bulky compared to what? Compared to four levers that have to be adjusted right? That's nothing. This is a six digit pin that has to be entered in the correct order. Some math wiz help me out with the probabilities. But it's very secure. You give me a lock with that security in a smaller package and I'll eat my hat.

Ok, I suck at probabilities, but I think this is right:

1in 4 chance of getting the first number right, 1 in 4 for second and so on... so ¼x¼x¼x¼x¼x¼= 1/4096 for six digits. ...I think.

Lever lock would be, ½x½x½x½=1/16.

Did I do that right? If so...   1/4096 > 1/16

Or were you referring to some other kind of lock.

BTW if I am doing that right, my 6 button (3 digit PIN) combo lock would be 1/216. Yuck. But my 9 button (4 digit PIN) would be 1/6561. Not to shabby but a lot larger.

### #7

atokniro

Posted 16 March 2011 - 09:09 AM

xNightmare said:

If only it were compact. D:
This is about as compact as it gets

### #8

Flowzor

Nether Resident

• Members
• 2093 posts
• Location: Austria
• Minecraft: Flowz0r

Posted 16 March 2011 - 09:28 AM

Wouldn't 4 buttons make a 16 digit combination lock?
"I disapprove of what you say, but I will defend to the death your right to say it."
- Beatrice Hall (Yes, her. Not Voltair, look it up and stop bothering me about it.)

### #9

OSX2000

Glowstone Miner

• Members
• 3082 posts
• Location: World1
• Minecraft: OSX2000

Posted 16 March 2011 - 09:30 AM

wishiwasonmaui said:

You give me a lock with that security in a smaller package and I'll eat my hat.
Security?
1- Hold mouse button on door
2- Wait for door to disappear
3- Entry

PINs be damned!

OT: This is a very compact system, considering what it is. Well done.

### #10

wishiwasonmaui

Posted 16 March 2011 - 12:15 PM

Flowzor said:

Wouldn't 4 buttons make a 16 digit combination lock?

Not sure what you mean but my system is expandable so that you could have a 16 digit PIN.

### #11

wishiwasonmaui

Posted 16 March 2011 - 12:16 PM

OSX2000 said:

wishiwasonmaui said:

You give me a lock with that security in a smaller package and I'll eat my hat.
Security?
1- Hold mouse button on door
2- Wait for door to disappear
3- Entry

PINs be damned!

OT: This is a very compact system, considering what it is. Well done.

...or block protection mods. Or just build it for the fun of it.

### #12

Flowzor

Nether Resident

• Members
• 2093 posts
• Location: Austria
• Minecraft: Flowz0r

Posted 16 March 2011 - 12:23 PM

wishiwasonmaui said:

Flowzor said:

Wouldn't 4 buttons make a 16 digit combination lock?

Not sure what you mean but my system is expandable so that you could have a 16 digit PIN.

1 button = 2 settings
0/1

2 buttons = 4 settings
00/01/10/11

3 buttons = 8 settings
000/001/010/011/100/101/110/111/

4 buttons = 16 settings
0000/0001/0010/0011/0100/0101/0110/0111/1000/1001/1010/1011/1100/1101/1110/1111
"I disapprove of what you say, but I will defend to the death your right to say it."
- Beatrice Hall (Yes, her. Not Voltair, look it up and stop bothering me about it.)

### #13

TheCl0wn

Tree Puncher

• Members
• 28 posts

Posted 16 March 2011 - 02:25 PM

Flowzor said:

wishiwasonmaui said:

Flowzor said:

Wouldn't 4 buttons make a 16 digit combination lock?

Not sure what you mean but my system is expandable so that you could have a 16 digit PIN.

1 button = 2 settings
0/1

2 buttons = 4 settings
00/01/10/11

3 buttons = 8 settings
000/001/010/011/100/101/110/111/

4 buttons = 16 settings
0000/0001/0010/0011/0100/0101/0110/0111/1000/1001/1010/1011/1100/1101/1110/1111

Think he is correct about the 16 settings.(2(States per button)^4(Buttons)=16). You also calulate possibilities for numeric or alphabetic passwords this way...

### #14

Wilco1e

Out of the Water

• Members
• 9 posts

Posted 16 March 2011 - 02:30 PM

Flowzor said:

wishiwasonmaui said:

Flowzor said:

Wouldn't 4 buttons make a 16 digit combination lock?

Not sure what you mean but my system is expandable so that you could have a 16 digit PIN.

1 button = 2 settings
0/1

2 buttons = 4 settings
00/01/10/11

3 buttons = 8 settings
000/001/010/011/100/101/110/111/

4 buttons = 16 settings
0000/0001/0010/0011/0100/0101/0110/0111/1000/1001/1010/1011/1100/1101/1110/1111

exept... the order also counts here
So it's 1 in 4 (1/4) chance per 'digit' to guess it right
Which means the amount of combinations is (1/4)^n where n is the amount of digits

### #15

Flowzor

Nether Resident

• Members
• 2093 posts
• Location: Austria
• Minecraft: Flowz0r

Posted 16 March 2011 - 02:41 PM

I'm an idiot, actually.

It's a 2 digit lock, because there are 16 possible combinations.

With combinations ranging from binary 0 to binary 15
"I disapprove of what you say, but I will defend to the death your right to say it."
- Beatrice Hall (Yes, her. Not Voltair, look it up and stop bothering me about it.)

### #16

wishiwasonmaui

Posted 16 March 2011 - 04:36 PM

Flowzor said:

wishiwasonmaui said:

Flowzor said:

Wouldn't 4 buttons make a 16 digit combination lock?

Not sure what you mean but my system is expandable so that you could have a 16 digit PIN.

1 button = 2 settings
0/1

2 buttons = 4 settings
00/01/10/11

3 buttons = 8 settings
000/001/010/011/100/101/110/111/

4 buttons = 16 settings
0000/0001/0010/0011/0100/0101/0110/0111/1000/1001/1010/1011/1100/1101/1110/1111

What the hell are you talking about. Forgive my frustration but, there aren't 16 "settings". Four levers, yes, there are 16 possible ways to set up the levers. These are buttons, with a SIX DIGIT PIN! /rant.

### #17

wishiwasonmaui

Posted 16 March 2011 - 04:44 PM

Wilco1e said:

exept... the order also counts here
So it's 1 in 4 (1/4) chance per 'digit' to guess it right
Which means the amount of combinations is (1/4)^n where n is the amount of digits

So, are you saying I was right? Math! Head! Hurts! So it's one chance in 4,096 not one in sixteen like Flower keeps saying...

### #18

Flowzor

Nether Resident

• Members
• 2093 posts
• Location: Austria
• Minecraft: Flowz0r

Posted 16 March 2011 - 05:11 PM

wishiwasonmaui said:

Wilco1e said:

exept... the order also counts here
So it's 1 in 4 (1/4) chance per 'digit' to guess it right
Which means the amount of combinations is (1/4)^n where n is the amount of digits

So, are you saying I was right? Math! Head! Hurts! So it's one chance in 4,096 not one in sixteen like Flower keeps saying...

How do you get more than 16 possible combinations with 4 inputs?
"I disapprove of what you say, but I will defend to the death your right to say it."
- Beatrice Hall (Yes, her. Not Voltair, look it up and stop bothering me about it.)

### #19

NerdFail
• Minecraft: NerdFail

Posted 16 March 2011 - 05:20 PM

wishiwasonmaui said:

Wilco1e said:

exept... the order also counts here
So it's 1 in 4 (1/4) chance per 'digit' to guess it right
Which means the amount of combinations is (1/4)^n where n is the amount of digits

So, are you saying I was right? Math! Head! Hurts! So it's one chance in 4,096 not one in sixteen like Flower keeps saying...

So you're good at redstone wiring, but you're not a big fan of math........ interesting.

@OP: I think this is an amazing design. I never knew you could do something so complex with redstone as to create buttons that can not only have certain inputs be "saved in a memory", but to also have it reset if the code was incorrect. And honestly, if I were to try and imagine a system like this, I would have thought that it would be required to be much larger. It's unfortunate that it isn't possible to make it smaller, because I doubt most people would want to have this huge lump sticking out of their house. None the less, a truly amazing build. I seriously need to learn about redstone wiring, cuz it seems like you can do just about anything with it.

### #20

XDragon350

Posted 16 March 2011 - 05:21 PM

Flowzor said:

How do you get more than 16 possible combinations with 4 inputs?
Because you can press buttons more than once. Have you ever seen a keypad lock in your life? It's like that.