This site is currently in read-only mode during migration to a new platform.
You cannot post questions, answers or comments, as they would be lost during the migration otherwise.
0 votes

I am trying to save and load a config file that contains the high score for a game I am making, and I have both the saving and loading working. However, I would rather not allow the user to simply be able to go into the .ini file and change their high score. Unfortunately, I am unaware of how to encrypt it. Thank you!

Godot version 4
in Engine by (38 points)

1 Answer

+2 votes
Best answer

The ConfigFile class already has built-in support to save and load encrypted versions of your data. Take a look at save_encrypted(), save_encrypted_pass(), load_encrypted(), and load_encrypted_pass() in the docs here.

by (22,704 points)
selected by
How do I fix my error?

Errr... What error?

Welcome to Godot Engine Q&A, where you can ask questions and receive answers from other members of the community.

Please make sure to read Frequently asked questions and How to use this Q&A? before posting your first questions.
Social login is currently unavailable. If you've previously logged in with a Facebook or GitHub account, use the I forgot my password link in the login box to set a password for your account. If you still can't access your account, send an email to [email protected] with your username.