transposition-trial
This commit is contained in:
1
transposition-trial/message.txt
Executable file
1
transposition-trial/message.txt
Executable file
@@ -0,0 +1 @@
|
|||||||
|
heTfl g as iicpCTo{7F4NRP051N5_16_35P3X51N3_V9AAB1F8}7
|
||||||
11
transposition-trial/sol.py
Executable file
11
transposition-trial/sol.py
Executable file
@@ -0,0 +1,11 @@
|
|||||||
|
#!/home/maxime/.pyvenv/bin/python3
|
||||||
|
|
||||||
|
with open("message.txt", 'r') as f:
|
||||||
|
text = f.read().strip()
|
||||||
|
decoded = ""
|
||||||
|
for i in range(len(text)):
|
||||||
|
k = i // 3
|
||||||
|
j = (i-1)%3
|
||||||
|
decoded += text[3*k+j]
|
||||||
|
print(decoded)
|
||||||
|
|
||||||
Reference in New Issue
Block a user