diff --git a/crypto/transposition_trial/message.txt b/crypto/transposition_trial/message.txt new file mode 100644 index 0000000..9d591b8 --- /dev/null +++ b/crypto/transposition_trial/message.txt @@ -0,0 +1 @@ +heTfl g as iicpCTo{7F4NRP051N5_16_35P3X51N3_V9AAB1F8}7 \ No newline at end of file diff --git a/crypto/transposition_trial/solve.py b/crypto/transposition_trial/solve.py new file mode 100755 index 0000000..91cc6e3 --- /dev/null +++ b/crypto/transposition_trial/solve.py @@ -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() \ No newline at end of file