cryptography.fernet.InvalidToken error when decrypting line from file (using key from file)
I’m kind of a beginner still and I’m making a simple password manager in python using the cryptography module. The user can enter a program name and a password, and it is encrypted and then written to a file. They can also view passwords added to the file. When the user selects this, they enter the name of the program/service they are trying to find, and it returns the matching password by decrypting the file line by line and checking if the program name is in that file. I hope this makes sense.