How do I save a encrypted config file?

:information_source: Attention Topic was automatically imported from the old Question2Answer platform.
:bust_in_silhouette: Asked By Artifabrian

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!

:bust_in_silhouette: Reply From: jgodfrey

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.

Errr… What error?

jgodfrey | 2023-04-08 14:07

How do I fix my error? - Archive - Godot Forum

Artifabrian | 2023-04-09 20:37