aboutsummaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorMarvin Borner2019-06-22 18:34:16 +0200
committerMarvin Borner2019-06-22 18:34:16 +0200
commit0f82454032665192eaafec9dd76e88e7efa35b9f (patch)
tree9643270c6b45757c096281bc2045b68c75a88cd7
parentce9c06fd5e41f77df6e0dbcc553e2ca290e20207 (diff)
Began presentation
-rw-r--r--encrypt.py1
-rw-r--r--presentation/css/style.css46
2 files changed, 47 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))
diff --git a/presentation/css/style.css b/presentation/css/style.css
new file mode 100644
index 0000000..d68e1ab
--- /dev/null
+++ b/presentation/css/style.css
@@ -0,0 +1,46 @@
+.left {
+ float: left;
+ width: 50%;
+}
+
+.right {
+ float: right;
+ width: 50%;
+}
+
+.hidden {
+ display: none !important;
+}
+
+.fixedCenter {
+ position: absolute;
+ left: 0;
+ right: 0;
+ margin-left: auto;
+ margin-right: auto;
+}
+
+.fixedFirstThird {
+ position: absolute;
+ left: 35%;
+}
+
+.fixedThird {
+ position: absolute;
+ right: 35%;
+}
+
+table, tbody, tr {
+ border: 0;
+!important;
+}
+
+td, th {
+ text-align: center !important;
+ border: 1px solid white !important;
+ border-collapse: collapse;
+}
+
+.description {
+ margin-top: 16px;
+} \ No newline at end of file