aboutsummaryrefslogtreecommitdiffhomepage
path: root/encrypt.py
diff options
context:
space:
mode:
authorMarvin Borner2019-06-22 18:34:16 +0200
committerMarvin Borner2019-06-22 18:34:16 +0200
commit0f82454032665192eaafec9dd76e88e7efa35b9f (patch)
tree9643270c6b45757c096281bc2045b68c75a88cd7 /encrypt.py
parentce9c06fd5e41f77df6e0dbcc553e2ca290e20207 (diff)
Began presentation
Diffstat (limited to 'encrypt.py')
-rw-r--r--encrypt.py1
1 files changed, 1 insertions, 0 deletions
diff --git a/encrypt.py b/encrypt.py
index 00d4778..a02645f 100644
--- a/encrypt.py
+++ b/encrypt.py
@@ -110,6 +110,7 @@ def encrypt(text, passphrase):
else:
mixed_matrix = mix_columns(diffused_matrix)
merged_matrix = xor_matrices(mixed_matrix, round_keys[r + 1])
+ print(" ".join([int_to_hex_string(item) for sublist in merged_matrix for item in sublist]))
flat_matrix = [int_to_hex_string(item) for sublist in merged_matrix for item in sublist]
print(" ".join(flat_matrix))