From 7e3c047d98be5c8c21af3e296023c194873dc8a0 Mon Sep 17 00:00:00 2001 From: Adam Doupe Date: Mon, 30 Oct 2023 12:09:05 -0700 Subject: [PATCH] ack --- cryptography/run | 2 -- 1 file changed, 2 deletions(-) diff --git a/cryptography/run b/cryptography/run index 7fdbf7b..ddb5be2 100755 --- a/cryptography/run +++ b/cryptography/run @@ -128,7 +128,6 @@ def level5(): key = get_random_bytes(16) cipher = AES.new(key=key, mode=AES.MODE_ECB) - print(f"{pad(flag, cipher.block_size)}") ciphertext = cipher.encrypt(pad(flag, cipher.block_size)) show_b64("secret ciphertext", ciphertext) show_hex_block("secret ciphertext", ciphertext) @@ -136,7 +135,6 @@ def level5(): while True: plaintext_prefix = input_b64("plaintext prefix") ciphertext = cipher.encrypt(pad(plaintext_prefix + flag, cipher.block_size)) - print(f"{pad(plaintext_prefix + flag, cipher.block_size)}") show_b64("ciphertext", ciphertext) show_hex_block("ciphertext", ciphertext)