Make your own wallet-sized Enigma(tm)-like Machine

Make your own wallet-sized Enigma(tm)-like Machine
I work as a sysadmin and have way too many passwords to keep track of.  I used to use one of those password dongles made for the military, but between flat batteries, the size of the thing and various other annoyances, I decided to make my own that would fit in my wallet -- out of paper.

You can also read about my enigma machine here where I have some more photos of it as well.

I've also made some other spy gadgets, including famously making the worlds first real working and wearable Shoe Phone.

PS: If you enjoy this instructible, perhaps consider making a donation to the campaign to preserve the Bletchley Park complex where the Enigma code was broken, shortening world war two, and saving lots of lives in the process.  Their web site is at www.savebletchleypark.com
 
Remove these adsRemove these ads by Signing Up
 

Step 1Cryptoanalytic Discussion

Cryptoanalytic Discussion
Before we get any further, lets just work through the cryptographic context, and make sure that we aren't raving mad.

Don't worry if the following all sounds like gobbledy-gook, because it probably is.  The bottom line is that because the intended use of the device is to generate passwords, and you only ever transmit those password securely, then it is easier to capture the passwords than it is to break the cipher. 

You can now safely skip to the next step.

But if you would like some more detailed cryptoanaylsis  on the use of this device, read on.

First up, the device is intended to be a generator of passwords.  That is, by taking something much easier to remember, we encipher it and use the cipher text as the password.  This means that the plain text is never revealed to anyone.  It also means that we never need to write anything down. 

Further, since the device does not actually store any passwords, it should not breach any of the usual military password dongle guidelines, which generally expressly forbid the storage of any sensitive password in any device, electronic, paper or otherwise.  That is to say, my paper Enigma(tm)-like machine should be capable of approval for military use! If anyone would like to fund the certification, I'd love to hear from you :)

Also, the cipher text is only conveyed on the kind of channels that you would use to carry a password, we have a further protection.  Add to that the generally short length of passwords, especially when they are composed of pseudo-random characters, and the usual Enigma attacks that were used so successfully during the second world war become impossible: (a)  there is no (or at worst, little) capturable traffic to analyse; and (b) even if the traffic were captured, the message length is too short compared with the cycle length to undertake any extensive analysis.

In particular, because the cipher text is only sent on channels that are ordinarily depended upon as being secure, compromising the cipher requires first obtaining the passwords that it is protecting, even if it the cipher was only ROT13! 

Thus, the security is predicated on the secrecy of the plain text, and the security of the transmission channels, rather on the operation of the enciphering device itself.  What the device offers is a means of transforming a low-quality password into a high-quality password, plus a fair bit of geek cred along the way.

But let's move onto the operation of the device itself, and protocols of operation, to assure ourselves that the cipher is a sensible one, and offers some security in and of itself.

The device consists of two fixed rotors and a reflector, plus an outer index ring.  This is somewhat simpler than the real Enigma machines that used three or four rotors which could be rearranged and selected from a selection, and generally featured a plug-board as well.  However, we do use an alphabet with n=72 instead of n=26, so that we can generate better quality passwords. 

The end result is that the key space is 72^3 = 373,248.  While not huge, it is probably sufficient given that the cipher texts and plain texts are not ever revealed.  Thus it is imperative that the plain texts you use to generate your passwords are kept secret, and that you don't use this device to drive a one-time-pad style login system where the cipher texts can be readily intercepted, especially given that the wiring can be observed when the device is being used. 

If you could conceal the wiring of the device, then the security is improved, because the huge number of wiring combinations, (72!)^3 = lots, offers a fair degree of resilience, especially if short cipher texts are used to limit the quantity of traffic that could be captured.  Calculating how much traffic you would need to mount this kind of attack is beyond the scope of this instructible.


« Previous StepDownload PDFView All StepsNext Step »
27 comments
Apr 25, 2011. 1:55 PMDanNolan1337 says:
Still no site to generate a code wheel? Aw man, any chance someone could mail me a customized (or the standard) PDF to danny_nolan@yahoo.co.uk, I need one to start storing random generated passwords for co-workers that dont need to be super secure. I just plan on using their initials to generate the initial setup and selecting the 4th letter randomly.

Thanks in advance.
Jan 19, 2011. 5:09 PMFoaly7 says:
I didn't get the centre hole very exact, but mine seems to be okay. I guess I'll figure it out when I use it.
Jan 18, 2011. 7:23 PMFoaly7 says:
I'm not sure I managed to print mine to the proper size. I can always use my glasses for a magnifyer.
Oct 21, 2010. 4:46 PMxiq says:
Hey Paul,

This is all kinds of awesome :)

So, am I right in thinking that to make a new wiring, I would just need to reproduce the middle disk, with different pairs of points reflected?

pix
Oct 21, 2010. 4:53 PMxiq says:
I like the spatulas so much, I bought the company!
Jul 21, 2010. 1:33 PMmatthew gowan says:
How many people actually spotted the war games reference?
Jul 23, 2010. 10:58 AMDarkRhino says:
You're kidding me. I was laughing when I saw that, and was thinking it must be a screen saver thing .... where it plays out the movie letter by letter, and maybe some voice gen too. I saw this sometime ago, but never had the color printer available. Is there a way to increase the amount of wheels, or even perhaps a way to generate a custom letter placement? Didn't know if you had a 'wheel' generator to create something like that. I like it, haven't tried it out yet but, I am cutting out the pieces now and am looking forward to generating secret codes.
Aug 12, 2010. 5:40 PMDarkRhino says:
Here's my idea on how to create a password that is one alternate way. First ... Find a 4 letter word and it can be used as your password hint ... I've tried to come up with ways to disguise it so it's not obvious. but lets just say that after you print out one of the standard sheets, (without mixing them up) assemble it, and think of a 4 letter word. For this demonstration, we'll use four. On way to hide it in a coded clue, say something like 'Warn golfers' or 'Not quite five' ... I understand the spelling for the clue to 'Warn golfers' is spelled -fore- and would be a good clue because most people would be mislead into thinking -that- spelling. So, we'll use that clue. Now on the wheel, we'll line up 'f' first, 'o', and then 'u' ... now for the code look for the 'r' which calculates out to ... @mk=OD3k8 ... nice strong password. if you want to be able to trace back you could add color too to help with that. so the password could be ... @mk=redOD3k8 stronger password and it will help decipher the word used ... if you would need that. I've tried using other ideas but this one is decent to help with remembering passwords without writing anything down as a security risk. Now to get funky, mix the wheels up. Print out ones from one set like pointers at wa,ga and the blue right, and mix it up with the one that have La, -a, blue left ... mix it up ... wa with -a and blue right or wa with ga and blue left ... or .... well, you get the idea ... any one else have any ideas? let me know.
Aug 3, 2010. 7:04 PMSaturn V says:
WAR GAMES!!!!!
Jul 4, 2010. 8:42 AMjollygreen says:
Hello I like to collect and make code and cipher items and I like this one. I would like to know if you have made the program so that I can make my own settings for the inner rotor? Also I have a idea that came up with awhile back that will make it easier to turn the rotors when I laminate the rotors and I cut them out I cut a tab on the rotor and it makes it easier to turn. The cipher I make was a more basic poly-alphabetic rotor that was based on the Tom Mix Decoder it is not as secure as your enigma version. If you want to see the pictures just email me and I will send them to you. Thanks for a great decoder GOD Bless you and your family Kenneth jolly_green1@yahoo.com
Mar 10, 2010. 9:48 AMryanpeplin says:
Could you create a pdf file with the order of the rings reversed so that it would be printed double sided?
Nov 8, 2009. 10:27 PMlukaj2003 says:
Great god of crypto, I beseech you!
Please explain how this wonderous invention works, because seriously, I can't figure it out!  


Nov 9, 2009. 8:56 PMlukaj2003 says:
Well, just really all of it :P
The one that throws me off is the first picture of the explanation, I can't see how you've set it to read CAT, or maybe I just can't see it because it works in a different way than I think it does...
My head hurts. 
Oct 29, 2009. 7:49 PMlou_cyfer says:
very cool idea & very clear and useful instructable!
thanks for that, bro :)

...i want more crypto-tools for my wallet !!
Oct 27, 2009. 12:54 PMgmoon says:
(tm)?  lol ;-)

I think you can relax. the "third reich" is in no position to enforce it's "trademarks..."
Oct 27, 2009. 5:05 PMgmoon says:
AFAIK (without research), Zeppelins are rigid, and blimps are not.

Interesting trivia about Enigma. Seems the original inventor sold the patents to the ChiffriermaschinenAktien-Gesellschaft (Cipher Machines Stock Corporation) in 1923. Is the your Enigma(tm) the owner of the patents, I wonder? Or is this a McDonalds(tm) issue? ;-)
Oct 27, 2009. 8:11 AMart rebel says:

lol nice movie reference.

Oct 27, 2009. 6:36 AMchwbcc says:
What does this do again?  Awe who cares I can put it in my wallet and look cool with my other spy friends... do spys have friends?  and if they do would they tell you they were a spy?  and if I say I am a spy does that negate the facts that I am a spy?   hummmm  Really cool tool, Can't wait for the website to generate a random one.
Oct 27, 2009. 5:39 AMrimar2000 says:
This thing looks IMPRESSIVE! What a job!



Pro

Get More Out of Instructables

Already have an Account?

close

All Steps Viewing
View all steps of an Instructable on the same page when you're a Pro Member.

Upgrade to Pro today!
12
Followers
6
Author:gardners