Forums - Open Redstone Engineers
Enigma Machine - Printable Version

+- Forums - Open Redstone Engineers (https://forum.openredstone.org)
+-- Forum: ORE General (https://forum.openredstone.org/forum-39.html)
+--- Forum: Projects & Inventions (https://forum.openredstone.org/forum-19.html)
+---- Forum: In Progress (https://forum.openredstone.org/forum-20.html)
+---- Thread: Enigma Machine (/thread-71.html)

Pages: 1 2


Enigma Machine - fibonatic - 04-22-2013

I have wanted to build a Enigma machine in Minecraft for quite some time. At first I didn't know how I could do it, I had some ideas which involved huge piston tapes which would function as the rotors.
However not so long ago I got a much simpler solution, which involved binary representation of each letter and adding/subtracting to imitate the rotation of the rotors.
I recently also got a little bit into programming, so I made a simple emulator of this in JavaScript.
Currently I have a schematically setup in my head, however I still need to figure out a fast way of decoding/encoding 275 different outputs: 25 for each rotor (5 total) since the 26th letter would be zero (00000), 25 for the reflector and after that the signal would pass by the rotors again but in reversed order, so 25 * (5 + 1 + 5) = 275.


RE: Enigma Machine - icecoldjazz - 04-22-2013

Take it a step further and introduce a mechanic that allows a letter to be encoded as itself. When encoding A, for example, A could never become A, it would always end up as B-Z. This was the fatal flaw that allowed the German code to be cracked at Bletchley Park.


RE: Enigma Machine - icecoldjazz - 04-23-2013

As far as I'm aware, Turing cracked the code after he realized that a letter never became itself, even in the military version of the machine. The switchboard didn't make a difference apparently.


RE: Enigma Machine - fibonatic - 04-23-2013

This is an informative video from Numberphile about the Enigma machine.
It is indeed correct that an encrypted letter can't be itself. However to use this to crack the code of one message (with no standard format) is very hard. Only if you know that certain words would appear in the message, it would be a lot easier to decode it.
But the mean reason why I want to build this is because of the aesthetics.


RE: Enigma Machine - newomaster - 04-25-2013

Can't wait to see this when it's done Big Grin
I don't think one has ever been made before


RE: Enigma Machine - Guy1234567890 - 04-25-2013

Yeah, very cool project idea!


RE: Enigma Machine - jmal116 - 04-26-2013

I thought of a similar idea (after watching the numberphile video), but my main problem is that I don't know what the rotors do the letters to code it.


RE: Enigma Machine - Thor23 - 04-26-2013

The rotors work like the switchboard on the front, excepting of course that the connections never change between each pair of letters. The signal goes into a rotor at one letter and comes out the other side at another. There are probably schematics to show how the letters in each rotor are connected, but you should be able to just wire them up randomly and achieve the same result.


RE: Enigma Machine - fibonatic - 04-28-2013

There is a little bit more to it than what Thor23 said. It is correct that each rotor has some internal wiring which connects each of the 26 inputs to one of the 26 outputs. However the rotor can be rotated which would mean that each letter corresponding with a wire will be shifted both shifted on the input and on the output. After doing this three times (usually an Enigma machine holds 3 rotors) the signal will pass through a reflector which is symmetric, so if input A would output G, than input G would output A (this is needed to be able to decode a message with the same settings as the encoded settings). After this the signal is passed through the rotors again but in reversed order and direction.
And for actual wiring of the rotors and reflector I am using this source.
However I am not sure if I am implementing this correctly since I haven't been able to encode the message "AAAA" to "BDZGO"


RE: Enigma Machine - Thor23 - 04-28-2013

I don't think the encoding is a mistake on your part, I'm not getting it either. This page appears to have the same setup, and it encodes the first A as a U, so I don't think that wikipedia page is correct. Overall for the 5 A's I got UCFCK as the encrypted form, at least as far as the rotors are concerned.