Exemple #1
0
def RotorTest():
    r = Rotor("FABECD")
    print(r.encryptLetter('D') == 'E')
    print(r.decryptLetter('E') == 'D')
    r.click()
    print(r.encryptLetter('D') == 'C')
    print(r.decryptLetter('E') == 'C')
Exemple #2
0
def RotorClickTest():
    r = Rotor("CAB")
    for i in range(4):
        r.click()
        print(str(r))
        print(r.decryptLetter(r.encryptLetter('A')) == 'A')