The Godot Q&A is currently undergoing maintenance!

Your ability to ask and answer questions is temporarily disabled. You can browse existing threads in read-only mode.

We are working on bringing this community platform back to its full functionality, stay tuned for updates. | Twitter

0 votes

If I save my game data in .tres format, is it possible to encrypt and decrypt the data? Anyone know how to do this? I can't find any tutorial/ documentation. Thanks in advance d

in Engine by (20 points)

1 Answer

0 votes
by (887 points)

Can you show me how it works with resource file?

Why do you want first store data in unencrypted form, and when encrypt them? Data can be changed between steps. Write whatever you write in .tres now into encrypted file directly.
If you want to encrypt existing saves read .tres content into var, and save content into a new encrypted file.

Wow, thank for your help :). Silly me why do not think in this way xd. So before I save the data into the .tres file, I can encrypt the data with custom script. The reverse for loading the data back into the game. I will definitely try it out . Thank you.

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.