project-1032813 - Game Assets Protection
This mod serves as a library for protecting author's game assets through encryption. The main purpose is to prevent unauthorized content usage, which is particularly relevant in cases of illegal ports to other platforms.
Main Features
The mod supports encryption of almost all file types, including PNG textures, OGG sound files, and geckolib models. Compatibility with resource packs allows for protection of custom content.
Usage Process
To get started, create a folder named "aes" in the Minecraft root directory (in development environment, this is the run folder). Place the files you want to encrypt inside it.
In the mod code, use the following snippet in the FMLClientSetupEvent handler:
try
{
AESUtil.encryptFiles(".png");
}
catch (Exception e)
{
e.printStackTrace();
}
After encryption is complete, remove the .dat extension from file names. For sound files, use similar code with the ".ogg" parameter. Important: remove this code before publishing the mod.
Developers plan to implement more sophisticated encryption methods in future versions.