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)



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.


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

One thing I have noticed which is different about my emulator is that I turn the rotors after I have pressed a letter, while in the actual machine the rotors first turn and then let a signal pass through all the wires.

Thanks Thor23, I have tested a few letters and they all returned the right letter, so it seems to work correctly. However for the 5 A's I got UBDZG (using rotor I, II and III, with I closest to the reflector and start position AAA).

By the way I also tried to find the settings which where used in the Numberphile video (since the start positions where given), however their machine also have a plug board.


RE: Enigma Machine - Nickster258 - 04-29-2013

That will be cooler than cool. I still think the name is more fun than the concept.


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

Huh. I wonder, then, what sort of failure of understanding on my part is then preventing me from getting the correct answer. I don't suppose you could post the transformations for each letter as it goes through the rotors so I can see where I'm going wrong?


RE: Enigma Machine - Chibill - 06-17-2013

This java program code may help you with this http://www.dreamincode.net/forums/topic/45410-enigma-machine/


RE: Enigma Machine - Xeomorpher - 06-17-2013

>Java< I'm alright mate. <3


RE: Enigma Machine - Dornier - 06-17-2013

Here is a good simulator: http://startpad.googlecode.com/hg/labs/js/enigma/enigma-sim.html

I have an enigma keyboard with plugboard, the rotor and ring controller and a base 26 adder on my RDF plot. 5 decoders have to be built, that's all.


RE: Enigma Machine - Klakkaros - 09-03-2013

Hey guys Smile Just seen the Enigma Machine discussion - I've been working one for a while and finally finished it the other day, please check it out!

http://www.youtube.com/watch?v=Isl1CfQUtWs


RE: Enigma Machine - Badidzetai - 12-11-2013

This creation is Sooo badass. You're quite good at redstoning, man.
Anyway you'd rather classify this topic in Done section, no?