Script
Script
return message
while True:
# Display menu options
print("\nMenu:")
print("1. Generate keys")
print("2. Encrypt")
print("3. Decrypt")
print("4. Exit")
except Exception as e:
# Handle invalid input formats or decryption errors
print("Invalid ciphertext format or decryption error:", e)
else:
# Handle invalid menu choices
print("Invalid choice! Please try again.")
Output ScreenShot: