04-22-2013, 08:05 PM
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.
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.