> For the complete documentation index, see [llms.txt](https://jugandomiguel.gitbook.io/custom-resource-pack-geysermc/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://jugandomiguel.gitbook.io/custom-resource-pack-geysermc/general/resourcepack-encrypting.md).

# ResourcePack encrypting

In this section you will learn how to encrypt your resource pack to protect it from being opened by the public

First you will need to install the next tool from this github <https://github.com/valaphee/mcrputil>

{% hint style="warning" %}
IMPORTANT: This app is just for windows
{% endhint %}

<figure><img src="https://836212640-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FeYZkRmf1B2dpXVYomNU6%2Fuploads%2Fj1rzCzfW9RPNfTsA7y1c%2Fimage.png?alt=media&amp;token=b14006e6-eb9e-4fcb-9c8e-db371b6c8f09" alt=""><figcaption><p>MCRPUtil Github</p></figcaption></figure>

Then you need to **Releases** and download the latest update

<figure><img src="https://836212640-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FeYZkRmf1B2dpXVYomNU6%2Fuploads%2FQpv0ZggSSKXc1ct7SXHl%2Fimage.png?alt=media&amp;token=ce4cb538-b4f8-4120-80c4-d328027e370a" alt=""><figcaption></figcaption></figure>

Download the latest .exe file&#x20;

{% hint style="info" %}
Remember the name or the version number may change depending of the latest update for the moment you download the app
{% endhint %}

<figure><img src="https://836212640-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FeYZkRmf1B2dpXVYomNU6%2Fuploads%2FZq2PLvYSxszzrg2RF3yu%2Fimage.png?alt=media&amp;token=90ec1c26-9f91-4295-839f-bd7a1e48c107" alt=""><figcaption></figcaption></figure>

When you have the .exe installed create a new folder when you are going to make your encryption the directory should look like this:

{% hint style="info" %}
The folders can have any name, the name given in this guide is only to make the guide easier to follow
{% endhint %}

<img src="https://836212640-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FeYZkRmf1B2dpXVYomNU6%2Fuploads%2F4m7vi1sm9Kmb4mZRjELp%2Ffile.excalidraw.svg?alt=media&amp;token=8721b2b9-a23b-4d8f-8973-a6acff254ef7" alt="" class="gitbook-drawing">

Put the mcrputil.exe in the Main Directory

<figure><img src="https://836212640-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FeYZkRmf1B2dpXVYomNU6%2Fuploads%2Fhi1RQSuhwYJ9isvnxgdp%2Fimage.png?alt=media&amp;token=eece3d85-fc61-48f9-b1f7-155ebc385e35" alt=""><figcaption></figcaption></figure>

In the input folder you should put your resourcepack like this:

<figure><img src="https://836212640-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FeYZkRmf1B2dpXVYomNU6%2Fuploads%2FNIPjAAUJDqcSMLZsnCCu%2Fimage.png?alt=media&amp;token=e82653ea-7a36-4706-b2f2-d4073bce1d81" alt=""><figcaption></figcaption></figure>

Then to start encripting your resourcepack you need to write cmd in the folders directory like this:

<figure><img src="https://836212640-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FeYZkRmf1B2dpXVYomNU6%2Fuploads%2FP3uuC9cJ9JrYr4HK1iho%2Fimage.png?alt=media&amp;token=e977d1c3-6bf2-4cb5-b678-620fb2c3c9b5" alt=""><figcaption></figcaption></figure>

And then hit **Enter**, and a app should open

<figure><img src="https://836212640-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FeYZkRmf1B2dpXVYomNU6%2Fuploads%2FcggpOaB0B7b3b0p8bMTT%2Fimage.png?alt=media&amp;token=344da33f-821f-41b3-abf1-f03684fc4d11" alt=""><figcaption></figcaption></figure>

Now drag the mcrputil.exe into the black app. A text should appear when you drop the mcrputil.exe into the app

<figure><img src="https://836212640-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FeYZkRmf1B2dpXVYomNU6%2Fuploads%2FhVuIxbKtRTGR3MgGNww8%2Fimage.png?alt=media&amp;token=dfd34860-ecc3-43c8-adb7-50d55ba29c87" alt=""><figcaption></figcaption></figure>

Now hit **Enter** and a list of instructions should appear in the app

<figure><img src="https://836212640-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FeYZkRmf1B2dpXVYomNU6%2Fuploads%2F8yT860H6SsUUyQKDW53M%2Fimage.png?alt=media&amp;token=2d6f1b07-b469-4006-ac3e-9f0815d1bedc" alt=""><figcaption></figcaption></figure>

Now to encrypt you need to type the next command:

**`mcrputil.exe encrypt (input folder director) (output folder director)`**

If you doesn't want to type the directory you can drag and drop the files like this:

<figure><img src="https://836212640-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FeYZkRmf1B2dpXVYomNU6%2Fuploads%2FRPZlKtAicvfMDoORRBVf%2FEncryptTutorial.gif?alt=media&amp;token=f2dae8a8-1ada-4f3c-a8e7-938681e2c49c" alt=""><figcaption></figcaption></figure>

Now hit enter and a lot of text should appear in the black app

<figure><img src="https://836212640-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FeYZkRmf1B2dpXVYomNU6%2Fuploads%2FC1zZpQfEbSVfvliAZX1g%2Fimage.png?alt=media&amp;token=e9715478-d9ba-4397-99d4-d8531c4599ea" alt=""><figcaption></figcaption></figure>

In your main folder should appear a file named **output.key:**

<figure><img src="https://836212640-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FeYZkRmf1B2dpXVYomNU6%2Fuploads%2FVOVwVBRqSwVuhL8jbUYa%2Fimage.png?alt=media&amp;token=9e721917-62f8-4df0-939d-5e44ec0110ae" alt=""><figcaption></figcaption></figure>

In your ouput folder should appear your resourecepack as normal, but all the textures can not be opened like this ones:

<figure><img src="https://836212640-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FeYZkRmf1B2dpXVYomNU6%2Fuploads%2F3CggO2aUgYptUDNfgYw7%2Fexample.jpg?alt=media&amp;token=8660cef0-daf1-46c1-9da8-cdf7ad19e053" alt=""><figcaption></figcaption></figure>

Now that we know that our resourcepack is encrypted, we need compress all the resourcepack in to a .zip file:

<figure><img src="https://836212640-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FeYZkRmf1B2dpXVYomNU6%2Fuploads%2FBsP12BoL4B5Xvfbgweua%2Fimage.png?alt=media&amp;token=a0bfd2cf-62a0-4188-8ab7-eac676a81eee" alt=""><figcaption></figcaption></figure>

Now use any app to compress files, I will use [WinRAR](/custom-resource-pack-geysermc/general/installs/winrar.md);

Select all the output files of our resourcepack, right click and select WinRAR > Add to archive...

<figure><img src="https://836212640-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FeYZkRmf1B2dpXVYomNU6%2Fuploads%2FLdckKZ3s04ApLJ7XxSIk%2Fimage.png?alt=media&amp;token=0b10dcc6-b4c0-4bb3-9fbe-a1032edbcc8a" alt=""><figcaption></figcaption></figure>

When you click **Add to archive...** WinRAR will open this window

<figure><img src="https://836212640-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FeYZkRmf1B2dpXVYomNU6%2Fuploads%2FmralR7klPELZrUWw4Lqt%2Fimage.png?alt=media&amp;token=52842259-8e96-4b4d-afe8-d8850ab42b20" alt=""><figcaption></figcaption></figure>

Now in your folder would appear a .zip file with the name you selected

<figure><img src="https://836212640-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FeYZkRmf1B2dpXVYomNU6%2Fuploads%2FJ9FBKBSqzeZfSIrDvovb%2Fimage.png?alt=media&amp;token=ead9525e-d488-41f3-8740-4cb78e871362" alt=""><figcaption></figcaption></figure>

Now, upload this .zip file to your server `plugins/Geyser-Spigot/packs` and now go to your main directory and change the name of your key to the name of your .zip file like this:

{% hint style="info" %}
Make sure to put the name and the extension of your compressed file. Example: **myamazingfile.zip.key**
{% endhint %}

<figure><img src="https://836212640-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FeYZkRmf1B2dpXVYomNU6%2Fuploads%2FAxTwbT4CM6QsgV91qvYz%2Fimage.png?alt=media&amp;token=974203be-c565-4359-a1ba-267721d9fc99" alt=""><figcaption></figcaption></figure>

Now with the key named as your file now upload it along the .zip file in your server, `plugins/Geyser-Spigot/packs` like this:

<figure><img src="https://836212640-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FeYZkRmf1B2dpXVYomNU6%2Fuploads%2FGFHtnY7ZcZcxhb8Y0Cr6%2Fimage.png?alt=media&amp;token=907c3f23-0626-4bc7-a00d-0c405208b14f" alt=""><figcaption></figcaption></figure>

With all this steps done you need to restart your server and now you pack is fully encrypted
