A Binary Version Of The Enigma Machine

The Enigma machine is the most well-known encryption tool used by German forces in World War II, mostly because it was so famously cracked by the Allies to great effect. Like many hackers, [christofer.jh] was intrigued by the design of the Enigma, and felt compelled to build a binary version of his own design.

The original Enigma machine was designed to scramble the 26 letters in the Latin alphabet. This design is altogether simpler. Instead of 26 letters, it will scramble 1s and 0s of binary code based on the initial settings of the scrambler rings.

Continue reading “A Binary Version Of The Enigma Machine”

An Arduino And An Enigma All Rolled Into One

This hacker has been wanting to design an Enigma machine simulator for a while, but didn’t take the leap until they realized there was a compact Arduino with a surplus of I/O.

The logs go through all sort of variations on the machine. Everything from a plug board variation similar to the original to a 16 segment LED tester are covered. In one of the posts you can even see it decode a real U-Boat message. 

The earlier revisions are housed in very attractive laser cut cases but the latest designs employ an even more elegant casing solution. The simulator uses 16 segment displays and momentary push buttons for the keys. At its core is a 2560 Pro mini. The write-up contains a lot of detail about the code behind the Enigma and is interesting to read.  Interestingly, the PCB was designed in Fritzing, the EDA software many love to hate.

We love the craftsmanship and attention going into this project and can see it turning into a very appealing kit as it goes through its design cycles.

The Enigma Enigma: How The Enigma Machine Worked

To many, the Enigma machine is an enigma. But it’s really quite simple. The following is a step-by-step explanation of how it works, from the basics to the full machine.

Possibly the greatest dedicated cipher machine in human history the Enigma machine is a typewriter-sized machine, with keyboard included, that the Germans used to encrypt and decrypt messages during World War II. It’s also one of the machines that the Polish Cipher Bureau and those at Britain’s Bletchley Park figured out how to decipher, or break. Most recently the story of how it was broken was the topic of the movie The Imitation Game.

Let’s start with the basics.

Continue reading “The Enigma Enigma: How The Enigma Machine Worked”

3DP Enigma Keyboard Improves On The Original

[Asciimation], who previously created an Enigma Machine wristwatch, decided to go all-in and make a 3D-printed Enigma machine. Not a perfect replica, but rather an improved version that works the same but doesn’t concern itself with historical accuracy. For instance, the current step involves building the keyboard. Rather than trying to re-create the spring-and-pin method of the original, he simply swapped in readily available, double-throw micro switches.

This project has a tremendous amount of fascinating detail. [Asciimation] did his research and it shows; he downloaded blueprints of the original and used hacked digital calipers to precisely measure each rotor’s teeth, so that it could be re-created for printing. He even re-created the Enigma font to ensure that his printed rotor wheels would look right–though in doing so he discovered that the original machine used one typeface for the keyboard, one for the wheels, and one for the indicator lamps.

We previously published [Asciimation]’s Enigma machine wristwatch project, where he simulated the functionality of an Enigma with an Arduino.

Continue reading “3DP Enigma Keyboard Improves On The Original”

Enigma neural network

Decoding Enigma Using A Neural Network

[Sam Greydanus] created a neural network that can encode and decode messages just as Enigma did. For those who don’t know, the Enigma machine was most famously used by the Germans during World War II to encrypt and decrypt messages. Give the neural network some encrypted text, called the ciphertext, along with the three-letter key that was used to encrypt the text, and the network predicts what the original text, or plaintext, was with around 96-97% accuracy.

The type of neural network he used was a Long Short Term Memory (LSTM ) network, a type of Recurrent Neural Network (RNN) that we talked about in our article covering many of the different types of neural networks developed over the years. RNNs are Turing-complete, meaning they can approximate any function. [Sam] noticed the irony in this, namely that Alan Turing both came up with the concept of Turing-completeness as well as played a big part in breaking the Enigma used in World War II.

How did [Sam] do it?

Continue reading “Decoding Enigma Using A Neural Network”

VCF East: Enigma Machines In The Flesh

At the end of World War II, the Germans ordered all Enigma cipher machines destroyed. Around the same time, Churchill ordered all Enigma cipher machines destroyed. Add a few decades, neglect the efforts of Polish codebreakers, and make a movie about Alan Turing and an offensively historically incorrect love interest, and you have a mystique around these rare, innovative cipher machine.

At the Vintage Computer Festival East, I was privy to what is probably the largest collection of Enigma machines on the planet. The exhibit comes from [Tom] and [Dan Perera] of Enigma Museum. Right now, they’re they only place where you can go out and simply buy a real, wartime Enigma machine. The price? Well, there is a pair of million-dollar Apple I boards at VCF. The Enigmas go for about a fifth of an Apple I.

Continue reading “VCF East: Enigma Machines In The Flesh”

3D Print An Enigma Machine That’s Close To The Real Thing

The Enigma machine as used by the German military during World War Two exerts a curious fascination among our community of hardware hackers and makers. Perhaps it is the mechanical complexity of the machine itself, or maybe the tale of how its encoded messages were decrypted by Allied codebreakers that contributes to this interest, but whatever it is we’ve seen a succession of Enigma-related projects over the years that shows no sign of abating.

The latest Enigma project to come our way is a particularly nice one from a group of first year students at CentraleSupélec Rennes, in Northwestern France. Their Réplique Enigma is a fully mechanical Enigma replica using 3D printing techniques, and unlike so many replicas which use modern electronics it has a set of rotors just like those you would have found in the original. The rotors themselves have a 3D-printed plastic shell which houses brass contacts and the associated writing, while the keyboard and lamp board are both made from plywood. Rather than trying to replicate the original switches from the keyboard they are using modern microswitches, however the keys themselves are upright posts that resemble the original. An AZERTY layout may not have been present on the real Enigma machines, but lends a pleasing twist to the build.

It’s worth browsing all the pages for this build, as the front page does not necessarily capture the whole build. The rotors set this Enigma apart from many of the replicas we’ve featured in the past, so you may find it interesting to take a look and make a few comparisons.