# C6: Encrypting the EBOOT

Next, download [RPCS3PatchEboot](https://github.com/tge-was-taken/RPCS3PatchEboot/releases/download/v1.4/RPCS3PatchEboot.1.4.zip). Extract it wherever you want, and 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="/files/vLXGNFKE0V1wS88JU0DN" alt=""><figcaption></figcaption></figure>

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

<figure><img src="/files/20xw0myJ3Px3JdOj7UV1" alt=""><figcaption></figcaption></figure>

Copy this exact text, paste it on the command window and press enter, it'll do all the work for you.

```
"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.
{% 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="/files/mnTTF0JZYmSuywa3IFGi" alt=""><figcaption><p>this is the program we'll be using (again)</p></figcaption></figure>

{% hint style="warning" %}
Your old, vanilla **EBOOT.BIN** might still be here. Move it somewhere *other than this folder* since we're gonna be creating a new one here. Don't delete it if you don't have a backup made.
{% endhint %}

Rename the EBOOT2.ELF to EBOOT.ELF and open the resigner tool.

* If you're using *HEN*, don't forget to change the **Output Method** to **\[3.XX STD]** and change the **Compress Data** option to **\[OFF]**.
* If you're using *CFW*, no extra steps are required.

Now, this changes a bit depending on your game.

* If you have the dumped version of Persona 5, regardless of the region, press 2. That's it.
* If you have the PSN version of Persona 5, press 3 and then A. You will be asked for a custom ContentID. If you're using the NPUB version of the game, paste this in: `UP2611-NPUB31848_00-HDDBOOTPERSONA05`, or if you're using the NPEB version: `EP4062-NPEB02436_00-GPERSONA5X000001`. Press Enter and you should get your new, patched **EBOOT.BIN**.

Now that we have a patched **EBOOT.BIN**, put it in the **Loadout** folder.

<figure><img src="/files/QxXiUqeUpgRCZuzRb2k0" alt=""><figcaption></figcaption></figure>

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


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://theroyalproject.gitbook.io/installation-guide-hardware/c6-encrypting-the-eboot.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
