valaphee / mcrputil

Minecraft Resource Pack Util for encrypting and decrypting resource packs.

Home Page:https://valaphee.com/article/1-minecraft-resource-pack-util/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

mcrputil

license version

Minecraft Resource Pack Util for encrypting and decrypting resource packs.

Usage

mcrputil is a command-line tool, and does not have a GUI.

Usage: mcrputil <COMMAND>

Commands:
  encrypt  Encrypts the folder with a given or auto-generated key
  decrypt  Decrypts the folder with a given key
  help     Print this message or the help of the given subcommand(s)

Options:
  -h, --help  Print help information

Encryption

Usage: mcrputil encrypt [OPTIONS] <INPUT> <OUTPUT>

Arguments:
  <INPUT>   Input folder
  <OUTPUT>  Output folder

Options:
  -k, --key <KEY>          Key used for encryption
  -e, --exclude <EXCLUDE>  Specifies files which should not be encrypted
  -h, --help               Print help information

Step-by-step

  1. Make sure your pack is unzipped, and in your pack directory should be a manifest.json
  2. ./mcrputil encrypt <path to your unzipped pack directory> <path to your unzipped pack/output directory>
  3. A contents.json should now be in your pack/output directory, the key will be displayed in the console after "Encryption finished, key: <your key>"
  4. Zip your output directory contents (not the directory itself), and copy your key depending on the software used to <your pack zip file>.key.

For integration into build automation systems, it might be easier to use the --key command line argument with an own supplied key.

Decryption

Usage: mcrputil decrypt [OPTIONS] <INPUT> <OUTPUT>

Arguments:
  <INPUT>   Input folder
  <OUTPUT>  Output folder

Options:
  -k, --key <KEY>  Key used for decryption
  -h, --help       Print help information

Please make sure, to not publish any of the resulting files, or only with the consent of the copyright holder, and note that there will be no support for decrypting resource packs.

Lang-简体中文

About

Minecraft Resource Pack Util for encrypting and decrypting resource packs.

https://valaphee.com/article/1-minecraft-resource-pack-util/

License:Apache License 2.0


Languages

Language:Rust 96.7%Language:C 3.3%