crypto/transposition_trial
This commit is contained in:
parent
872adfeca6
commit
8f86bd9c5f
1
crypto/transposition_trial/message.txt
Normal file
1
crypto/transposition_trial/message.txt
Normal file
@ -0,0 +1 @@
|
||||
heTfl g as iicpCTo{7F4NRP051N5_16_35P3X51N3_V9AAB1F8}7
|
13
crypto/transposition_trial/solve.py
Executable file
13
crypto/transposition_trial/solve.py
Executable file
@ -0,0 +1,13 @@
|
||||
#!/usr/bin/env python3
|
||||
|
||||
with open('message.txt', 'r') as f:
|
||||
content = f.read().strip()
|
||||
|
||||
def chunks(l, n):
|
||||
for i in range(0, len(l), n):
|
||||
yield l[i:i + n]
|
||||
|
||||
if __name__ == '__main__':
|
||||
for x, y, z in chunks(content, 3):
|
||||
print(f'{z}{x}{y}', end='')
|
||||
print()
|
Loading…
Reference in New Issue
Block a user