crypto/transposition_trial

This commit is contained in:
Oystein Kristoffer Tveit 2024-09-02 23:03:40 +02:00
parent 872adfeca6
commit 8f86bd9c5f
Signed by: oysteikt
GPG Key ID: 9F2F7D8250F35146
2 changed files with 14 additions and 0 deletions

View File

@ -0,0 +1 @@
heTfl g as iicpCTo{7F4NRP051N5_16_35P3X51N3_V9AAB1F8}7

View 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()