Resource Pack Encryption
Nukkit-MOT supports the use of encrypted resource packs to protect your work. This guide will help you configure resource pack encryption in three simple steps.
This encryption is based on the AES symmetric algorithm. While it can effectively enhance the security of your resource pack, it cannot completely prevent professional methods such as packet sniffing from cracking it.
📦 Encrypt the Resource Pack
It is recommended to use the open-source command-line tool EncryptMyPack for encryption. The process is as follows:
- Download the Tool
Download the latest version of the program from GitHub Releases. - Prepare the Resource Pack
- Must be in
.zip
format (you can directly rename a .mcpack file) - The root directory of the zip file must contain the
manifest.json
file - Supports including sub-packs (Sub Packs)
- Must be in
- Encryption
inputZip is the full name of the input zip file, e.g., example.zip
outputZip is the full name of the output zip file, e.g., example.zip
key is a custom 32-bit key. If no key is specified, the default key liulihaocai123456789123456789123
will be used.
- Windows
- macOS
- Linux
EncryptMyPack.exe encrypt <inputZip> <outputZip> [key]
EncryptMyPack encrypt <inputZip> <outputZip> [key]
Add executable permissions
chmod +x EncryptMyPack
Then you can proceed with the following command:
./EncryptMyPack encrypt <inputZip> <outputZip> [key]
Nukkit-MOT is only responsible for passing the key to the client and does not participate in the actual encryption/decryption process.
🔑 Configure the Encryption Key
- In the server's
resource_packs
folder, - Create a
.key
file with the same name as the encrypted pack. - Paste the 32-bit encryption key in the .key file.
🔄 Restart the Server
After modifying the configuration, you must restart the server for the encryption to take effect (Nukkit-MOT only loads resource pack configurations at startup).
❓ FAQ
Question | Answer |
---|---|
Can the encrypted resource pack be cracked? | It may be cracked by professional methods, but it is much more secure than an unencrypted resource pack. |
Does encryption affect game performance? | It does not affect client or server performance at all. |
Are multiple encrypted packs supported? | Yes, you can deploy multiple encrypted packs simultaneously, each requiring a corresponding .key file. |
Now, when your players load the resource pack, the client will automatically use the configured key to decrypt and load it.