def encrypt(): password = input("Enter a message: ").encode() encoded = base64.b64encode(password) print (encoded.decode()) menu()