davidbenjamindix wrote:Here's a quick drawing of what i'm thinking of. Sorry about the bad penmanship. I did it quick.
Looks good =)
Just to clarify (so i'm understanding this correctly): the key includes not only the dowel but also those pieces sticking up. The magnets are installed into the sides of the pieces. The pieces are of varying height, meaning that the lock is a sort of hybrid magnetic / warded design.
From your original description it sounds as if you intend that the user can rotate the pieces around the shaft of the key to at 0/90/180/270 degrees (i'm guessing if this is the case the the keyway would look like a big "+" symbol)? Or did you simply mean the user could re-arrange the pieces, but they all stay at the same orientation?
I'm assuming you meant the keyshaft would include a groove so the pieces could be removed and replaced in a valid positions, but once there they wouldn't rotate.
Magnets on their own will limit your key differs considerably (although I realize security probably isn't one of your goals, I just can't help thinking about this aspect). 2^8 magnets will only give you 256 possible combinations, so in this case you'll probably want to include a secondary blocking mechanism.
Some ideas:
If you want to stick with a magnetic key tumbler design, how about using a shaped key shaft (eg square) with a row of magnets down each side. This is just a basic idea off the top of my head. A set of spring loaded pins topped with a magnet in various polarities would block plug rotation - all pins would be held below the shearline by the force of the spring. If a magnet of the wrong polarity was introduced it would pull the pin down further; if the correct polarity was used the pin would be pushed above the shearline. With 2^20 magnets (5 magnets per side) you'd have over a million differs, well beyond what most commercial locks boast. Well it wouldn't exactly be a high security lock but a fairly simple design to implement. Just a thought.
Another idea is maybe something similar to the key of the Geminy lock; making a large flat key but with a group of magnets set into it that would align with a mechanism in the chest. If you bore holes from the back side of the chest you could make a lock that requires a certain magnetic pattern to be present to allow a bolt to retract. In theory you could make a mechanism with absolutely no externally visible parts (assuming you used strong neodymium magnet to retract the bolt internally.. but it'd have to be a pretty strong magnet and a very light bolt/spring).
Not entirely sure either of these would be a good design for your application but you asked for ideas, so here's some =)