fixes
This commit is contained in:
2
DES.py
2
DES.py
@@ -357,7 +357,6 @@ def output_file(output_file, operation):
|
|||||||
file.write(f"R{i}=")
|
file.write(f"R{i}=")
|
||||||
file.write(str(right_half_f[i]).replace("[","").replace("]","").replace(",","").replace(" ","").replace("'",""))
|
file.write(str(right_half_f[i]).replace("[","").replace("]","").replace(",","").replace(" ","").replace("'",""))
|
||||||
|
|
||||||
|
|
||||||
if operation == 'encryption':
|
if operation == 'encryption':
|
||||||
write_result(file, "Result", encrypted_data)
|
write_result(file, "Result", encrypted_data)
|
||||||
else:
|
else:
|
||||||
@@ -373,6 +372,7 @@ def output_file(output_file, operation):
|
|||||||
# file.write("\n")
|
# file.write("\n")
|
||||||
# file.write("Result=")
|
# file.write("Result=")
|
||||||
# file.write(str(decrypted_data).replace("[","").replace("]","").replace(",","").replace(" ","").replace("'",""))
|
# file.write(str(decrypted_data).replace("[","").replace("]","").replace(",","").replace(" ","").replace("'",""))
|
||||||
|
|
||||||
def main():
|
def main():
|
||||||
start_time = time.time()
|
start_time = time.time()
|
||||||
# Set up command-line argument parsing
|
# Set up command-line argument parsing
|
||||||
|
|||||||
Reference in New Issue
Block a user