Python Forum
Enigma Machine, I need help!
Thread Rating:
  • 3 Vote(s) - 4 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Enigma Machine, I need help!
#48
Here are the complete details of how a key sheet worked:

Output:
Table Source: http://users.telenet.be/d.rijmenants/en/enigmaproc.htm The Heer and Luftwaffe Procedures To obtain secure communications, the German Heer (Army) and Luftwaffe (Air Force) used standard procedures to transmit and receive messages. For a message to be correctly encrypted and decrypted, both the sender and receiver needed to set up their Enigma in exactly the same way. These settings were distributed in key sheets. For reasons of security, different parts of the armed forces had their own network, with different key sheets and with a network having its own codename. Each key sheet contained the following information:     Walzenlage: Choice and order of wheels     Ringstellung: The ringsetting, the position of the rotor wiring,                   relative to the alphabet rings     Steckerverbindungen: The plug connections on the plugboard     Kenngruppen: Groups to identify the key to the receiver. The key sheets were distributed on beforehand, and contained the basic settings for a whole month, per day. In general, the key sheets were in the custody of an officer, responsible for setting up the machine rotors and ringsettings. After setup, he could lock the machine front panel with a key. The operator could only select the rotor start position.                             Armee Stabs Maschinenschlussel Nr. 28                               (Army Staffs Machine Key No. 28) --------------------------------------------------------------------------------------- Tag | Walzenlage   | Ringstellung | Steckerverbindungen           | Kenngruppen --------------------------------------------------------------------------------------- 31  | IV   V    I  | 21  15  16   | KL IT FQ HY XC NP VZ JB SE OG | JKM  OGO  NCJ  GLP 30  | IV   II III  | 26  14  11   | ZN YO QB ER DK XU GP TV SJ LM | INO  UDL  NAM  LAX 29  | II   V   IV  | 19  09  24   | ZU HL CQ WM OA PY EB TR DN VI | NCI  OID  YHP  NIP 28  | IV  III   I  | 03  04  22   | YT BX CV ZN UD IR SJ HW GA KQ | ZQJ  HLG  XKY  EBT 27  | I    II   V  | 06  22  14   | PO ML IU KJ NH YT GB VF RE DC | EXS  TGY  IKJ  LOP --------------------------------------------------------------------------------------- o To identify the key that was used for a particular message, the operator had to insert   a five letter group called Buchstabenkenngruppe (letter identification group) as the   first group of the message. The Buchstabenkenngruppe is composed of two randomly selected   letters and one of the four possible three-letter Kenngruppen at the key sheet for that   day. If we take day 31 from the Army Staff key 28 (image above), we see the Kenngruppen   JKM, OGI, NCJ and GLP. In this case, some  examples of a correct Buchstabenkenngruppe are   FDJKM, KVOGI or QNNCJ. This five letter group at the start of the message should not be   encrypted with the rest of the message! If a message was devided into several parts, the   operator had to insert another Buchstabenkenngruppe for each part of the message. When   counting the letters for the message header, the five letters of the Buchstabenkenngruppe   must be included. The receiving operator immediately recognized which key was to be   applied by looking at the last three letters of the first group. o The setting of the machine was typically valid for one day. Using the same settings for a   large number of messages would increase the statistical amount of data to break a   particular key. Therefore, each message was sent with a different startposition of the   Enigma rotors, randomly selected by the operator. This was called the Spruchschlüssel   or message key.   Before 1940, the German military used the daily key and startposition, according to the key   sheet. The operator selected a random message key. This message key was encoded twice, to   exclude errors. As example, the trigram GHK is encoded twice, resulting in XMC FZQ. Next,   the operator moved the rotors to the message key GHK and encoded the message. The two   trigrams, being the encoded message key, were transmitted, together with the message. The   receiver sets his machine on the start position, as described in the codebook, and decodes   the trigrams XMC FZQ back into the GHK message key. Next, he sets the message key GHK as   start position on his machine, to continue decoding the rest of the message. However, this   procedure was actually a security flaw. The message key is encoded twice, resulting in a   relation between first and fourth, second and fifth, and third and sixth character.   Moreover, many message keys on a particular day would have the same setup and startpositions.   This security problem enabled the Polish Cipher Bureau to break the pre-war Enigma messages.     However, German cryptologists were aware of the security flaw and from 1940 on, the Wehrmacht   changed the message key procedures to increase security.     Wehrmacht radio operators now selected for each message a new randomly chosen start position   or Grundstellung, let's say WZA, and random message key or Spruchschlüssel, let's say SXT. He   moved the rotors to the random startposition WZA, and encoded the random message key SXT. Let   us presume that the result was UHL. He sets up the message key SXT as startposition and   encodes the message. Next, he transmits the random start position WZA, the encoded message key   UHL and the message. The receiver sets up the start position according the first trigram WZA,   and decodes the second trigram UHL to obtain the message key SXT. Next, he uses the message   key SXT as startposition to decode the actual message. If a message was devided into several   parts, the operator had to insert a new startposition and message key for each part of the   message.   Example of a typical Wehrmacht message:   1230 = 3tle = 1tl = 250 = WZA UHL =      FDJKM LDAHH YEOEF PTWYB LENDP   MKOXL DFAMU DWIJD XRJZY DFRIO   MFTEV KTGUY DDZED TPOQX FDRIU   CCBFM MQWYE FIPUL WSXHG YHJZE   AOFDU FUTEC VVBDP OLZLG DEJTI   HGYER DCXCV BHSEE TTKJK XAAQU   GTTUO FCXZH IDREF TGHSZ DERFG   EDZZS ERDET RFGTT RREOM MJMED   EDDER FTGRE UUHKD DLEFG FGREZ   ZZSEU YYRGD EDFED HJUIK FXNVB   The message was created at 12h30, consists of three parts (3 teile), of which this is the   first, and contains 250 characters (Buchstabenkenngruppe included). WZA is the startposition   (Grundstellung) to decipher the encrypted message key (Spruchschlüssel) UHL. The   Buchstabenkenngruppe FDJKM shows that the key that was used is the one with Kenngruppe JKM.   Example for decrypt:   U6Z DE C 1510 = 49 = EHZ TBS =   TVEXS QBLTW LDAHH YEOEF   PTWYB LENDP MKOXL DFAMU   DWIJD XRJZ=   To decrypt the message we proceed as follows:       • Select the Wehrmacht Enigma I with B reflector.     • Select the rotors, adjust their ring setting and set the plugs according to key sheet day 27     • Set the rotor start positions to EHZ, the first trigram of the message     • Type in the second trigram TBS to retrieve the original message key. The result should be XWB     • Set the decrypted message key XWB as start position for the three rotors.     • Now decrypt the actual message, but make sure to skip the key identification group TVEXS.   Note: in the pre-war Wehrmacht procedure, each message key was encrypted twice (to exclude errors)   by a fixed secret basic position, valid for the whole day. For instance, with basic setting ABC,   the message key XYZ was keyed in twice, resulting in JKL MNO. Only the double encrypted message key   JKL MNO was sent along with the message. However, this created a mathematical relation between J   and M, K and N, and L and O, a flaw that was exploited by the Polish codebreakers. German   cryptologists understood this flaw and dropped the double encrypted message key in 1939, replacing   it with a random basic position, sent along with a once encrypted message key.
Reply


Messages In This Thread
Enigma Machine, I need help! - by Kimkuq - Nov-12-2017, 07:15 PM
RE: Enigma Machine, I need help! - by Larz60+ - Nov-12-2017, 10:37 PM
RE: Enigma Machine, I need help! - by AceScottie - Nov-13-2017, 05:00 AM
RE: Enigma Machine, I need help! - by Kimkuq - Nov-13-2017, 06:29 PM
RE: Enigma Machine, I need help! - by Larz60+ - Nov-13-2017, 06:36 PM
RE: Enigma Machine, I need help! - by Kimkuq - Nov-13-2017, 06:42 PM
RE: Enigma Machine, I need help! - by Larz60+ - Nov-13-2017, 06:45 PM
RE: Enigma Machine, I need help! - by Kimkuq - Nov-13-2017, 08:22 PM
RE: Enigma Machine, I need help! - by Larz60+ - Nov-13-2017, 09:27 PM
RE: Enigma Machine, I need help! - by Kimkuq - Nov-13-2017, 10:09 PM
RE: Enigma Machine, I need help! - by Kimkuq - Nov-14-2017, 05:38 PM
RE: Enigma Machine, I need help! - by Larz60+ - Nov-14-2017, 05:47 PM
RE: Enigma Machine, I need help! - by Kimkuq - Nov-14-2017, 06:25 PM
RE: Enigma Machine, I need help! - by Larz60+ - Nov-15-2017, 12:54 AM
RE: Enigma Machine, I need help! - by sparkz_alot - Nov-15-2017, 02:26 PM
RE: Enigma Machine, I need help! - by Larz60+ - Nov-16-2017, 06:08 AM
RE: Enigma Machine, I need help! - by sparkz_alot - Nov-16-2017, 02:02 PM
RE: Enigma Machine, I need help! - by Kimkuq - Nov-16-2017, 09:56 PM
RE: Enigma Machine, I need help! - by Larz60+ - Nov-17-2017, 04:23 AM
RE: Enigma Machine, I need help! - by Larz60+ - Nov-17-2017, 10:08 PM
RE: Enigma Machine, I need help! - by Larz60+ - Nov-18-2017, 01:48 AM
RE: Enigma Machine, I need help! - by Kimkuq - Nov-18-2017, 10:09 PM
RE: Enigma Machine, I need help! - by Larz60+ - Nov-19-2017, 01:40 PM
RE: Enigma Machine, I need help! - by Larz60+ - Nov-19-2017, 10:06 PM
RE: Enigma Machine, I need help! - by Larz60+ - Nov-20-2017, 05:45 PM
RE: Enigma Machine, I need help! - by Kimkuq - Nov-20-2017, 08:28 PM
RE: Enigma Machine, I need help! - by Larz60+ - Nov-21-2017, 01:53 AM
RE: Enigma Machine, I need help! - by sparkz_alot - Nov-21-2017, 02:21 AM
RE: Enigma Machine, I need help! - by Larz60+ - Nov-21-2017, 11:50 AM
RE: Enigma Machine, I need help! - by Larz60+ - Nov-21-2017, 10:36 PM
RE: Enigma Machine, I need help! - by Kimkuq - Nov-22-2017, 09:18 AM
RE: Enigma Machine, I need help! - by sparkz_alot - Nov-21-2017, 11:52 PM
RE: Enigma Machine, I need help! - by Larz60+ - Nov-22-2017, 11:00 AM
RE: Enigma Machine, I need help! - by sparkz_alot - Nov-22-2017, 02:20 PM
RE: Enigma Machine, I need help! - by Larz60+ - Nov-22-2017, 04:24 PM
RE: Enigma Machine, I need help! - by sparkz_alot - Nov-22-2017, 05:12 PM
RE: Enigma Machine, I need help! - by Larz60+ - Nov-22-2017, 08:32 PM
RE: Enigma Machine, I need help! - by Kimkuq - Nov-22-2017, 09:03 PM
RE: Enigma Machine, I need help! - by sparkz_alot - Nov-22-2017, 08:48 PM
RE: Enigma Machine, I need help! - by Larz60+ - Nov-22-2017, 08:51 PM
RE: Enigma Machine, I need help! - by sparkz_alot - Nov-22-2017, 09:01 PM
RE: Enigma Machine, I need help! - by Larz60+ - Nov-22-2017, 09:06 PM
RE: Enigma Machine, I need help! - by sparkz_alot - Nov-22-2017, 09:28 PM
RE: Enigma Machine, I need help! - by Larz60+ - Nov-22-2017, 10:41 PM
RE: Enigma Machine, I need help! - by Larz60+ - Nov-24-2017, 09:18 PM
RE: Enigma Machine, I need help! - by Larz60+ - Nov-24-2017, 11:48 PM
RE: Enigma Machine, I need help! - by Larz60+ - Nov-25-2017, 05:09 AM
RE: Enigma Machine, I need help! - by Larz60+ - Nov-26-2017, 11:31 AM
RE: Enigma Machine, I need help! - by sparkz_alot - Nov-26-2017, 01:56 PM
RE: Enigma Machine, I need help! - by Kimkuq - Nov-26-2017, 09:53 PM
RE: Enigma Machine, I need help! - by Larz60+ - Nov-27-2017, 03:03 AM
RE: Enigma Machine, I need help! - by Larz60+ - Nov-28-2017, 08:29 PM
RE: Enigma Machine, I need help! - by Larz60+ - Nov-29-2017, 01:42 AM
RE: Enigma Machine, I need help! - by sparkz_alot - Dec-02-2017, 02:20 PM
RE: Enigma Machine, I need help! - by Larz60+ - Dec-02-2017, 02:50 PM
RE: Enigma Machine, I need help! - by Larz60+ - Dec-04-2017, 01:49 AM
RE: Enigma Machine, I need help! - by Kimkuq - Dec-06-2017, 09:58 PM
RE: Enigma Machine, I need help! - by Larz60+ - Dec-06-2017, 11:04 PM
RE: Enigma Machine, I need help! - by Larz60+ - Dec-07-2017, 02:08 PM
RE: Enigma Machine, I need help! - by Larz60+ - Dec-08-2017, 11:35 AM
RE: Enigma Machine, I need help! - by Larz60+ - Dec-16-2017, 02:08 PM
RE: Enigma Machine, I need help! - by Larz60+ - Dec-18-2017, 05:53 AM
RE: Enigma Machine, I need help! - by Kimkuq - Dec-18-2017, 09:06 PM
RE: Enigma Machine, I need help! - by Larz60+ - Dec-19-2017, 03:26 AM
RE: Enigma Machine, I need help! - by Larz60+ - Dec-23-2017, 02:22 AM
RE: Enigma Machine, I need help! - by sparkz_alot - Dec-23-2017, 02:19 PM
RE: Enigma Machine, I need help! - by Larz60+ - Dec-27-2017, 08:26 PM
RE: Enigma Machine, I need help! - by sparkz_alot - Dec-27-2017, 09:27 PM
RE: Enigma Machine, I need help! - by Larz60+ - Dec-28-2017, 01:49 AM

Possibly Related Threads…
Thread Author Replies Views Last Post
  Numeric Enigma Machine idev 9 706 Mar-29-2024, 06:15 PM
Last Post: idev
  Enigma Decoding Problem krisarmstrong 4 835 Dec-14-2023, 10:42 AM
Last Post: Larz60+

Forum Jump:

User Panel Messages

Announcements
Announcement #1 8/1/2020
Announcement #2 8/2/2020
Announcement #3 8/6/2020