dm-script

How can I protect my DM script source code from decompilation?


I have converted my DM script source code into a GTK file to protect it. However, I'm concerned that it might still be possible for someone to decompile or reverse-engineer it.

Questions:

Any insights or suggestions on how to secure DM script source code would be greatly appreciated!


Solution

  • GTK files (in the current version at least) do not offer any encryption-level security. While the script isn't stored in plain text, I'm certain it is likely that it could be recovered by people with a certain amount of hacking and decryption skills. There is no way known to me to really "protect" your script code from people with enough resolution to do so. I wouldn't do my online banking server by DM script ;c)

    Also: Packing scripts into GTK does not "compile" anything. You won't get any efficiency increase neither.

    If you need to really "protect" some of your source code, you can only do so by using some proper compiled code. One way to do this would be to have this code be a stand-alone executable that a DM script only calls out to (using LaunchExternalProcess)