Skip to content
This repository has been archived by the owner on Mar 29, 2023. It is now read-only.

tavurth/godot-gdscript-obfuscator

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

11 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Table of Contents

  1. Usage
    1. ‼ Use this at your own risk ‼
    2. Dependencies
    3. Running the obfuscator
    4. # no-mangle
    5. Examples
      1. Before
      2. After
  2. Support

Usage

This project was not really ready for production use and was more used as a way to show what might be possible.

The proposal to read if you find this repository interesting: godotengine/godot-proposals#4220

Please do not attempt to use this to mangle your project files 🙏

‼ Use this at your own risk ‼

This is very early work and this will mess up your game if you don’t have a git backup.

Currently not production ready, built more as an example of what we could do for GDScript obfuscation

Dependencies

This currently uses pt (platinum-searcher) for quickly finding all of the references in the project. In the future we will probably move this to pure python.

Running the obfuscator

  1. Put this script in your game directory
  2. Ensure DRY_RUN is True at the top of the file (only prints changes)
  3. python3 obfuscator.py

# no-mangle

Currently # no-mangle keyword is supported only for function names

func my_function(): # no-mangle
	pass

Which will keep the name of the function intact

Examples

Before

img

After

img

Support

Currently this is something that I will work on when I have some free time. If you like this project and want me to work on it more, consider buying me a coffee ☕️

Buy Me A Coffee

About

Start of the work to obfuscate GDscript

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Sponsor this project

Packages

No packages published