Introduction: Password Door (sorry for the Low Res. Pictures)
Are you afraid your valuables in minecraft might be stolen? Whether on a singleplayer server where your obnoxious sibling likes to play or on servers, with this password encoded door you can sleep easy knowing no one can steal your items.
Step 1: The Base
First, place an 11 block row of any block, and made it two blocks high. Then, add a row of 8 branching off both sides. I am using Iron for this door but you can use whatever you have. Remember the more secure the better.
Step 2: Numbering
Add levers/switches on the bottom row of the 11 blocks, followed by signs on the top row. Each sign should have a number in order (1, 2, 3 etc.). Alternatively, you can make the signs have letters or words on them instead.
Step 3: Place and Repeat
Place a repeater in front of each block of the row that has the levers.
Step 4: Setting the Code
According to the password you want, you need to place a block in front of the switches that make up your password and put a redstone torch on top of each. For example, if your password for 1-2-6 (like in the example), each block and redstone torch is placed in front of switches 1, 2 and 6.
Step 5: Filling It Up
Next, place a block in front of each block that you just placed. Fill all the spaces in between the blocks with repeaters.
Step 6: Wire the Door
Place a row of redstone dust in front of the repeaters and blocks.
Step 7: Connecting the Door
Place a strand of the redstone, starting from the middle, down to the 2nd last block. At the last row, place one block in front of the redstone.
Step 8: Finishing Up
Add one redstone torch on top of the block just added. Then, add another block on top of the torch. Once you've done this, add a door on top of that block.
Step 9: Secure
Your passlock door is finished. To activate, flick all of the levers of which you had the password made up of, but no others. For example, if your password is 1-2-6, turn the levers below the signs that say 1, 2, and 6, on, but all the others should be off. The door should open.
Cover all the redstone with blocks, so that players can't see it.
You can have up to 29 inputs. Larger amounts are more secure; the number of possibilities is 2^c, where c is the number of levers used. You can't have more than 29 inputs with this design, as the redstone signal won't travel far enough.