Need help with the Cryptography package

Traceback (most recent call last): File "EncryptionProject.py", line 70, in <module> token = f.decrypt(data).decode('utf-8') File "C:\Users\timmo\AppData\Local\Programs\Python\Python37\lib\site-packages\cryptography\fernet.py", line 74, in decrypt timestamp, data = Fernet._get_unverified_token_data(token) File "C:\Users\timmo\AppData\Local\Programs\Python\Python37\lib\site-packages\cryptography\fernet.py", line 85, in _get_unverified_token_data utils._check_bytes("token", token) File "C:\Users\timmo\AppData\Local\Programs\Python\Python37\lib\site-packages\cryptography\utils.py", line 31, in _check_bytes raise TypeError("{0} must be bytes".format(name)) TypeError: token must be bytes

/r/learnpython Thread