04-28-2013, 01:07 AM
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"
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"