Function Encryption 1.0 Scripts 4.0 Community
Submitted by user heppocogne; MIT; 2023-07-05
Encrypt GDScript funcrion implementations easier
Note that this is not a safe way to protect your codes because .pck includes raw encryption keys.
Use pck encryption (https://docs.godotengine.org/en/stable/contributing/development/compiling/compiling_with_script_encryption_key.html) if you need stronger protection.
Usage (please see the sample code):
External script editor is recommended. Godot editor does not recognize .impl as a text file.
1. Activate this plugin. res://secret and encryption keys are generated.
2. Write function definitions and variables etc... to .gd file. call_impl() accepts 3 arguments: method name, object, and arguments(optional). If you need more arguments, pass array or dictionary.
3. Write function implementations to .impl files. These scripts do not need to extend any class. All functions must be like function_name(this:Object,args). Do not use self in .impl file, use this passed by call_impl() instead. You can also use super class function by passing lambda as a argument.
4. .impl is encrypted and decrypted when loaded.
View files Download Submit an issue Recent Edits