Exemplo n.º 1
0
 public static Reflector UKW_B()
 {
     //YRUHQSLDPXNGOKMIEBFZCWVJAT
     int[] wiring = new int[26] { 24, 17, 20, 7, 16, 18, 11, 3, 15, 23, 13, 6, 14, 10, 12, 8, 4, 1, 5, 25, 2, 22, 21, 9, 0, 19 };
     Reflector ukw = new Reflector(wiring, PartName.UKW_B);
     return ukw;
 }
Exemplo n.º 2
0
 public void SetReflector(Reflector newReflector)
 {
     this.reflector = newReflector;
 }
Exemplo n.º 3
0
 public EnigmaMachine()
 {
     workingRotors = new Rotor[3] { Rotor.CreateRotor(PartName.RotorI), Rotor.CreateRotor(PartName.RotorII), Rotor.CreateRotor(PartName.RotorIII) };
     reflector = Reflector.UKW_B();
 }