Compiling with script encryption key

    For this to work, you need to build the export templates from source, with that same key.

    1. Generate a 256bit AES key in HEX. You can use the aes-256-cbc variant from .

      Alternatively, you can generate it yourself by using OpenSSL:

      You can generate the key without redirecting the output to a file, but that way you can minimize the risk of exposing the key.

    2. Compile Godot export templates and set them as custom export templates in the export preset options.

    3. Export the project. The game should run with encrypted scripts now.

    Possible Errors