transposition-trial

This commit is contained in:
Maxime Vorwerk
2024-07-07 13:28:19 +02:00
parent 2715eafddf
commit c386f178e2
2 changed files with 12 additions and 0 deletions

11
transposition-trial/sol.py Executable file
View 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)