base64_4.py 150 B

1234567
  1. def encrypt():
  2. password = input("Enter a message: ").encode()
  3. encoded = base64.b64encode(password)
  4. print (encoded.decode())
  5. menu()