Home
Enigma Programmers Guide
I get a few requests to release source code for cipher machines. I don't usually do this, it is mostly Windows GDI API stuff and I usually program like a slob (but don't tell my boss), so you would not want instruction from me. The encryption algorithm is mostly trivial anyhow.
A number of resources are available with specifications for building Enigma simulators. David Hamer has a .pdf file of Enigma wiring. There is also a technical specification on Tony Sale's codesandciphers website. A detailed Enigma programmers guide is available from Andy Carlson.
More obscure Enigma wirings can be found in various papers on David Hamer's website. One specifically deals with Enigma Variations, and you should also see his Enigma stepping paper. Paul Reuvers has written up his experience of writing Enigma simulators for RISC OS systems. This is well worth reading. BBC basic is OK, but you really should avoid VB like the plague.
Here's a downright handy C code string copy taught me by Homer Jay Simpson. He wrote it on the back of a beer mat in Moe's Tavern in 1996:
void strcpy(char *s, char t[])
{
#define VOID
while((*s++ = *t++) != 0)
if(*(s-1) == 0)
return VOID;
}