> For the complete documentation index, see [llms.txt](https://theroyalproject.gitbook.io/installation-guide-hardware/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://theroyalproject.gitbook.io/installation-guide-hardware/c6-encrypting-the-eboot.md).

# C6: Encrypting the EBOOT

Next, download and extract [RPCS3PatchEboot](https://github.com/tge-was-taken/RPCS3PatchEboot/releases/download/v1.4/RPCS3PatchEboot.1.4.zip). Put the decrypted **EBOOT.ELF** that we created in [Chapter 5](/installation-guide-hardware/c5-decrypting-the-eboot.md) and the **patch.yml** that we created in [Chapter 4](/installation-guide-hardware/c4-creating-the-patch.yml.md) into this folder. It should look like this:

<figure><img src="https://3517447842-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FGoHg6F5JKG5QaZJ7PfHd%2Fuploads%2FhPqSKXaLMiLUrdQJ9OYS%2Fimage.png?alt=media&amp;token=d25217bc-0734-4463-84dc-e66b4931b78f" alt=""><figcaption></figcaption></figure>

Now, in order for the tool to work, we need to open a CMD window here. To do so, type cmd in the bar at the top, like this and click enter.

<figure><img src="https://3517447842-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FGoHg6F5JKG5QaZJ7PfHd%2Fuploads%2F6BXXfty612BMWAR6Y59S%2Fimage.png?alt=media&amp;token=05aee08d-4fc5-44e1-9d4f-a42a016242d1" alt=""><figcaption></figcaption></figure>

Copy this exact text, paste it in the command window and press enter

```
"RPCS3PatchEboot.exe" "EBOOT.ELF" "patch.yml" "EBOOT2.ELF"
```

{% hint style="info" %}
If you get an error during this step, return to [Chapter 4](/installation-guide-hardware/c4-creating-the-patch.yml.md) and make sure you're copying the patches correctly and didn't miss a single step. Also make sure all the files are in the folder and named correctly.
{% endhint %}

After that, you'll see a file named **EBOOT2.ELF**; move that file to the same folder that has the *TrueAncestor SELF Resigner* tool that we used in [Chapter 5](/installation-guide-hardware/c5-decrypting-the-eboot.md).

<figure><img src="https://3517447842-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FGoHg6F5JKG5QaZJ7PfHd%2Fuploads%2FBbxv1QKIqjg6CjxmkVrk%2Fimage.png?alt=media&amp;token=d5ac3666-cd32-4478-9505-84c4fea68055" alt=""><figcaption><p>this is the program we'll be using (again)</p></figcaption></figure>

{% hint style="warning" %}
Your vanilla/unmodded **EBOOT.BIN** might still be here. It would be wise to back it up if you haven't already done so, since we will be creating a new one here. Do not proceed if you don't have a backup made.
{% endhint %}

Rename the EBOOT2.ELF to EBOOT.ELF and open the resigner tool. If you already had it open from before, close it and reopen it.

* If you're using *HEN*, change the **Output Method** to **\[3.XX STD]** and change the **Compress Data** option to **\[OFF]**. Refer to [Chapter 5](/installation-guide-hardware/c5-decrypting-the-eboot.md) if you've forgotten how to do this.
* If you're using *CFW*, don't change anything. Proceed to the next step.

Now, this bit changes depending on your game version:

* If you have a dumped disc version of the game (**BLUS31604** or **BLES02247)**:
  * Press 2 and then hit enter, that's it.
* If you have the PSN version of the game (**NPUB31848** or **NPEB02436)**:
  * Press 3 and then A. You will be asked for a custom ContentID.&#x20;
    * If you have the **NPUB** version of the game, paste this in: \
      `UP2611-NPUB31848_00-HDDBOOTPERSONA05`
    * If you have the **NPEB** version of the game, paste this in: \
      `EP4062-NPEB02436_00-GPERSONA5X000001`.&#x20;
  * Finally, press Enter and you should get your new, patched **EBOOT.BIN**.

***

Now that we have a patched **EBOOT.BIN**, put it in your folder. It should be looking like this:

<figure><img src="https://3517447842-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FGoHg6F5JKG5QaZJ7PfHd%2Fuploads%2FyE81Cq9xOqkodqg1xmQa%2Fimage.png?alt=media&amp;token=2e4cfd61-4293-4fac-afce-41bfca38e1d2" alt=""><figcaption></figcaption></figure>

We have downloaded and built everything we needed. Move on to the next chapter!
