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.
+5 votes

I'm trying to add GDScript encryption to reduce the chances of people changing lines in my script.

I see that the Godot native looks for a SCRIPT_AES256_ENCRYPTION_KEY env variable and sets a script encryption key based on that in the binary. It's being used to read ".gde" files (encrypted gdscript). You can go here for more details:

Apparently, Godot 2.0 had an option to export .gd files as .gde, but I don't see that anywhere in Godot 3.0 nor 3.1. How can I make a .gde file?

in Engine by (21 points)

2 Answers

0 votes

This feature seems to be back in 3.1 (at least in graphically in the IDE, didn't actually test it).

by (895 points)

Yep, I'm the one who ported it in 3.1, works fine so far :)

0 votes

Script encryption feature got merged in 3.1 (nobody requested porting it in 3.0 though).

I've also written documentation on how to compile an engine with script encryption key.

Also note that it's possible to export scripts as plain text, which can be useful for debugging purposes, or when used with unit testing.

by (1,422 points)
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.