From c07b4f1606dd1129679e7ad303e6c4814cf014ff Mon Sep 17 00:00:00 2001 From: Miguel Muniz Date: Mon, 7 Oct 2024 23:59:05 -0700 Subject: [PATCH] fixes --- DES.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/DES.py b/DES.py index 9ebb7ce..33ca4cd 100644 --- a/DES.py +++ b/DES.py @@ -357,7 +357,6 @@ def output_file(output_file, operation): file.write(f"R{i}=") file.write(str(right_half_f[i]).replace("[","").replace("]","").replace(",","").replace(" ","").replace("'","")) - if operation == 'encryption': write_result(file, "Result", encrypted_data) else: @@ -373,6 +372,7 @@ def output_file(output_file, operation): # file.write("\n") # file.write("Result=") # file.write(str(decrypted_data).replace("[","").replace("]","").replace(",","").replace(" ","").replace("'","")) + def main(): start_time = time.time() # Set up command-line argument parsing