Function Encryption

An asset by heppocogne
The page banner background of a mountain and forest
Function Encryption hero image

Quick Information

0 ratings
Function Encryption icon image
heppocogne
Function Encryption

Encrypt GDScript funcrion implementations easierNote 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.

Supported Engine Version
4.0
Version String
1.0
License Version
MIT
Support Level
community
Modified Date
1 year ago
Git URL
Issue URL

gdscript-function-encryption

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 if you need stronger protection.

Usage

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.
extends Node

var _impl:=preload("res://main.gd.impl")  # load implementation
var variable

func _ready():
    _impl.call_impl("_ready",self)


func function(greetings:String):
    _impl.call_impl("function",self,"hello")
  1. 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.
func _ready(this:Object,_args):
    this.variable=1


func function(_this:Object,args):
    print(args)
  1. .impl is encrypted and decrypted when loaded.

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.

Reviews

0 ratings

Your Rating

Headline must be at least 3 characters but not more than 50
Review must be at least 5 characters but not more than 500
Please sign in to add a review

Quick Information

0 ratings
Function Encryption icon image
heppocogne
Function Encryption

Encrypt GDScript funcrion implementations easierNote 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.

Supported Engine Version
4.0
Version String
1.0
License Version
MIT
Support Level
community
Modified Date
1 year ago
Git URL
Issue URL

Open Source

Released under the AGPLv3 license

Plug and Play

Browse assets directly from Godot

Community Driven

Created by developers for developers