From 0f82454032665192eaafec9dd76e88e7efa35b9f Mon Sep 17 00:00:00 2001 From: Marvin Borner Date: Sat, 22 Jun 2019 18:34:16 +0200 Subject: Began presentation --- encrypt.py | 1 + presentation/css/style.css | 46 ++++++++++++++++++++++++++++++++++++++++++++++ 2 files changed, 47 insertions(+) create mode 100644 presentation/css/style.css 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 -- cgit v1.2.3