# 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](https://theroyalproject.gitbook.io/installation-guide-hardware/c5-decrypting-the-eboot), and the **patch.yml** that we created in [Chapter 4](https://theroyalproject.gitbook.io/installation-guide-hardware/c4-creating-the-patch.yml) 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&#x26;token=d25217bc-0734-4463-84dc-e66b4931b78f" 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="https://3517447842-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FGoHg6F5JKG5QaZJ7PfHd%2Fuploads%2F6BXXfty612BMWAR6Y59S%2Fimage.png?alt=media&#x26;token=05aee08d-4fc5-44e1-9d4f-a42a016242d1" 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](https://theroyalproject.gitbook.io/installation-guide-hardware/c4-creating-the-patch.yml) 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](https://theroyalproject.gitbook.io/installation-guide-hardware/c5-decrypting-the-eboot).

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

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