# Write the decrypted data to a new file with open('decrypted_file.txt', 'wb') as f: f.write(decrypted_data)