“Key must be in bytes” – Fernet in python
I am just trying to make the simplest encrypt – decrypt program in python using cryptography and fernet. I made the code in 10 minutes, the encrypting part works perfectly, however when I use the decrypt part, it gives me the following error: (the key must be in bytes). Also yes I am a new programmer.