Write a software implementation of a simple three rotor


Write a software implementation of a simple three rotor Enigma Machine. Please refer to the following wikipedia entries for the Enigma Machine and the Enigma Rotor details.

https://en.wikipedia.org/wiki/Enigma_machine
https://en.wikipedia.org/wiki/Enigma_rotor_details

For the current implementation, consider only the rotors I - V, and the stock B & C reflectors. For sake of convenience, our message format will contain everything including the settings, as explained below.

machine_settings ( reflector, left rotor, middle rotor, right rotor )
initial_position encrypted_message_indicator
message ( this may be more that one line )

For example :
B I II III
AAA AAA
ZZZZZ ZZZZZ ...

The initial position is where the rotors start, the encrypted message indicator is the input then, and the resulting values would be the message indicator. That indicator becomes the initial position for the message. Historically the message body was written as 4 or 5 letter groups.

Kindly refer to the attached document ("Enigma Machine.doc") for detailed explanation of encryption logic using examples.

Attachment:- Enigma Machine.doc

Solution Preview :

Prepared by a verified Expert
C/C++ Programming: Write a software implementation of a simple three rotor
Reference No:- TGS01248361

Now Priced at $20 (50% Discount)

Recommended (99%)

Rated (4.3/5)