-
Notifications
You must be signed in to change notification settings - Fork 0
/
data.py
37 lines (34 loc) · 1.2 KB
/
data.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
# -*- coding: utf-8 -*-
'''
Enigma Machine Plugboard
This file holds information about the rotors and reflectors for use elsewhere in the program.'''
ROTORS = {
'I': {
'connections': 'EKMFLGDQVZNTOWYHXUSPAIBRCJ', 'notch': 'Q',
},
'II': {
'connections': 'AJDKSIRUXBLHWTMCQGZNPYFVOE', 'notch': 'E',
},
'III': {
'connections': 'BDFHJLCPRTXVZNYEIWGAKMUSQO', 'notch': 'V',
},
'IV': {
'connections': 'ESOVPZJAYQUIRHXLNFTGKDCMWB', 'notch': 'J',
},
'V': {
'connections': 'VZBRGITYUPSDNHLXAWMJQOFECK', 'notch': 'Z',
},
'VI': {
'connections': 'JPGVOUMFYQBENHZRDKASXLICTW', 'notch': 'ZM',
},
'VII': {
'connections': 'NZJHGRCXMYSWBOUFAIVLPEKQDT', 'notch': 'ZM',
},
'VIII': {
'connections': 'FKQHTLXOCBJSPDZRAMEWNIUYGV', 'notch': 'ZM',
},
}
REFLECTORS = {
'B': 'YRUHQSLDPXNGOKMIEBFZCWVJAT',
'C': 'FVPJIAOYEDRZXWGCTKUQSBNMHL',
}