Can I hide Fernet key file?

I have a python 3 program that creates a Fernet key file to encrypt a txt file. When the program is executed a second time, and certain conditions are met, the txt file is decrypted.

Maybe the Fernet key file is useless so long as I don’t provide a way for the user to enter it, but I’m not really sure how that works.

If they can use the key to decrypt the message, regardless of whether the conditions are met, I would like to know how to hide the key file from ever being seen by a human. My program still needs to read the file if the conditions are met.

Is this possible?

Can I hide Fernet key file?

Shopping cart
There are no products in the cart!
Continue shopping