moth/puzzles/crypto/160xor.py

12 lines
310 B
Python
Raw Normal View History

2009-10-13 10:08:03 -06:00
#!/usr/bin/python3
plaintext = [b'I wonderr if they'll try doing a frequency count again? '
b'It should work this time as well. Hopefully messing around '
b'with simple cyphers like
for p in plaintext:
c = sbox(text, key)
assert c == sbox(c, ikey), 'Failure'
print(c)