Assistance with Encryption of Assets in a Deployed Game

Greetings,

I am in the process of releasing a demo on Steam for a game currently in development and trying to double check everything to make sure I'm following the licensing requirements for third-party assets. I'm running into a bit of a snag here in terms of understanding how to properly encrypt said assets in such a way that the deployed executable can still read them.

Specifically, I have third-party assets (fonts and png files) contained in two unencrypted folders within the deployed project (these folders are fonts and dragonbones_assets). I want to encrypt them so as to properly follow licensing requirements for their use.

I'm under no illusion that any method I use to encrypt them will secure them from a determined hacker, but I do want to provide a modicum of protection for assets that I do not have the right to distribute.

Ultimately I have spent the better part of two days trying to figure out the best way to do this and am looking for some advice or suggestions. And I would greatly appreciate any advice that can be offered. 🙂

I want to note that I have tried Enigma Virtual Box but that causes significant load times on area transitions and am not interested in sacrificing performance at scale. Normally running the game outside of the packaged Virtual Box executable, there are no load times whatsoever (or at least they are so fast that I cannot perceive them 😛).

Thank you in advance and have a wonderful week,
-Niniann
Forgive me if I'm missing something, but doesn't MZ let you encrypt files when you deploy it?
Forgive me if I'm missing something, but doesn't MZ let you encrypt files when you deploy it?
I believe it won't encrypt files that are in non-standard folders and not referenced by actual database settings.

I don't know of a good way to do what you're asking, because if you encrypt those files separately your game won't know how to read them.

You could look at some third party stuff, like the Cook Tool, see if it does what you want. I know the Enigma shell causes problems with MV/Z games.
For the purpose of Komodo, the built-in encryption is considered sufficient.
what happens when you use that on deployment?

(if your editor and project are older - you'll need the 1.4 update at minimum for that option, both editor and project)

EDIT: ninja'ed
Good point. I had forgotten about that.
Is there a way to check and see what method MZ uses?
Thank you for the assistance!

To reply to comments in the thread so far:

TRIDIUM - As ATT_Turan said, the standard encryption method on deployment won't encrypt assets in the fonts and dragonbones_assets folders. I can place the dragonsbones_assets png files into the img folder to get them encrypted on deployment, but then the game will crash when a battle starts as the game is unable to read them.

Andar - Same deal as above basically. The standard encryption renders files in the dragonbones_assets and fonts folders unreadable by the game executable (if I encrypt them by placing them in the image folder before deployment/encryption). Normally, the standard encryption method provided by MZ on deployment won't encrypt anything in these folders at all.

ATT_Turan - I have not heard of the Cook Tool, I will check that out, thank you very much for the suggestion 🙂.
There's also the Encrypterator that was just released by @Arthran, but I don't know if that touches files outside of the standard project folders.
You can try Arthran encryptor
There's also the Encrypterator that was just released by @Arthran, but I don't know if that touches files outside of the standard project folders.
My tool only encrypts stuff in the standard folders, and subfolders within those folders. Adding support for additional folders would be very trivial, but ensuring that the engine properly decrypts the assets during use would not necessarily be. In particular, DragonBones would be an issue, since those assets are loaded by third party plugins, so support would need to be added on a plugin-by-plugin basis.

If the OP is using VisuStella's DragonBones plugin, then adding support could be kinda tough, since that plugin is obfuscated.
I have no knowledge about this subject so I may be very off base from what you need but I have seen some people release their RPG Maker game as an "Application" i.e their game contains no loose files and folders but an .exe and its data files. I can't speak about how good or bad that is or if its even possible since I don't have any knowledge in this field but maybe someone else can help you about this and add another layer of protection to your game.
I have seen some people release their RPG Maker game as an "Application" i.e their game contains no loose files and folders but an .exe and its data files.
There are certainly multiple routes to this, but one common one is the Enigma shell I already mentioned. It's known to cause problems with MV/Z games.

(I know the OP said they didn't care how strong the encryption was so long as they made an effort, but these executable wrappers are also very trivial to unpack)
I also recommend avoiding the Enigma box. Not only does it cause problems with the game running as intended, but depending on system security, large exe files tend to get flagged as possible viruses.
Thank you for all the replies!

I do have Arthran's Encrypterator which I plan to use to better encrypt the core files for better protection of assets, but as Arthran said it doesn't currently cover the fonts or dragonbones_assets folders.

On that note, I am indeed using VZ's Dragonbones plugin, and it's been quite difficult so far trying to figure out how to encrypt the assets in this folder properly.

I have tried the Engima program but it causes significant load times for even small area transitions so I'm looking everywhere I can to find an alternative.
If you send me a small demo project that I can use for testing--so I don't have to learn how to set up the plugin and go find DragonBones assets and such--I can try to take a look into adding encryption support for DragonBones at some point. However I can't make any promises as to when that would happen, or if I will be successful.
Greetings,

Been super busy over the holidays and just now getting back to the grind. Wanted to post here and give an update to this thread over how I was able to solve the encryption issue.

What I ended up doing is purchasing the Cook Tools Deluxe created by AceOfAces. The tool not only provides good enough encryption for assets that no layman could steal them, it also very neatly packages a project into one that works well with the Windows OS and third party programs like Discord.

Thank you ATT_Turan for the suggestion 🙂.

I also wanted to reach out to Arthran here and provide the sample project requested. I am shortly going to send you a tiny, basic project that includes a properly setup dragonbones assets folder with dragonbones assets I created for a base monster art that is included with RPG Maker MZ. The rar file does not include the dragonbones plugin itself, since it is a paid plugin from Visustella that I don't believe I can distribute in this fashion.

That being said however, sans the plugin itself, everything else is properly created and in its place, so I believe this should work for testing if you can create a tool that will encrypt the dragonbones asset folder properly. If not, please feel free to reach out and I'll see if I can assist some more. Having more tools available for encryption of RPG Maker games is a great thing and I would be happy to assist however I can.

Thank you again to everyone in this thread for the assistance and I hope you have a wonderful week 🙂.

Note: Here is a link to the Cook Tools Deluxe by AcesOfAces for anyone in the future that may stumble across this thread looking for encryption assistance: https://aceofaces.itch.io/rmcooktooldx

-Niniann

Original thread: https://forums.rpgmakerweb.com/threads/assistance-with-encryption-of-assets-in-a-deployed-game.164009/