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