Created
February 18, 2012 21:56
-
-
Save rosshadden/1861114 to your computer and use it in GitHub Desktop.
Rotors
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
rotors = [ | |
[22,5,1,19,8,25,13,20,21,2,16,4,9,15,14,10,18,7,23,6,12,0,3,24,17,11], | |
[7,12,17,6,13,16,15,10,9,0,2,8,21,22,11,20,4,1,5,25,18,24,23,19,3,14], | |
[3,17,20,0,7,11,1,5,25,21,6,12,22,2,10,23,15,8,16,24,18,14,13,19,9,4], | |
[14,22,19,21,18,10,24,15,9,8,5,12,11,20,0,7,17,16,4,2,13,3,1,25,6,23] | |
] | |
inverseRotors = [[None] * 26] * 3 | |
for r,rotor in enumerate(inverseRotors): | |
for l,letter in enumerate(rotor): | |
inverseRotors[r][letter] = l |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment