You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Aug 10, 2023. It is now read-only.
I think that pickling the data could be good, but since the data will be from a user (i.e. no guarantee it comes from our program), pickle might not be a good choice for security reasons.
We could probably dump it into a yaml file, but then it is very easy for users to cheat
(providing their own values), and it could require some extra work to set up the file format.
The text was updated successfully, but these errors were encountered:
Is it possible to calculate an HMAC and/or encrypt the pickled data?
I think this would require some kind of secret, which would be less than ideal (imagine needing a password to access your game saves).
Sign up for freeto subscribe to this conversation on GitHub.
Already have an account?
Sign in.
How should we go about saving the game to a file?
I think that pickling the data could be good, but since the data will be from a user (i.e. no guarantee it comes from our program), pickle might not be a good choice for security reasons.
We could probably dump it into a yaml file, but then it is very easy for users to cheat
(providing their own values), and it could require some extra work to set up the file format.
The text was updated successfully, but these errors were encountered: