Ask coding questions

← Back to all posts
Why is it saying that it has an invalid token?
pieninja (6)

(relevant code: def save():)

So I am trying to encrypt some data, store it, and then decrypt it. I made sure that my file was encrypted with the stored key, but when I try to decrypt it, it tells me that I have an invalid token. Why is that? Thanks for any help.

Comments
hotnewtop
MikeJMS8910 (231)

What does it say that the invalid token is?

pieninja (6)

@MikeJMS8910 it just says that the token is invalid and quits the program

MikeJMS8910 (231)

@pieninja can you paste the error?

pieninja (6)

@MikeJMS8910 Sorry for the late reply.