[GH-ISSUE #1926] [Feature Request] add a self decryption util #669

Closed
opened 2026-02-27 21:07:31 +03:00 by kerem · 7 comments
Owner

Originally created by @switchuwu on GitHub (Dec 27, 2024).
Original GitHub issue: https://github.com/shadps4-emu/shadPS4/issues/1926

title. rpcs3 has the same thing. shadps4 already runs encrypted eboots so it should work

Originally created by @switchuwu on GitHub (Dec 27, 2024). Original GitHub issue: https://github.com/shadps4-emu/shadPS4/issues/1926 title. rpcs3 has the same thing. shadps4 already runs encrypted eboots so it should work
kerem closed this issue 2026-02-27 21:07:31 +03:00
Author
Owner

@Nenkai commented on GitHub (Dec 27, 2024):

Retail packages (and by definition eboots) cannot be decrypted as is without a console.
shadPS4 does not run encrypted eboots. FPKGs contain eboots that are already decrypted.

<!-- gh-comment-id:2563959715 --> @Nenkai commented on GitHub (Dec 27, 2024): Retail packages (and by definition eboots) cannot be decrypted as is without a console. shadPS4 does not run encrypted eboots. FPKGs contain eboots that are already decrypted.
Author
Owner

@kalaposfos13 commented on GitHub (Dec 27, 2024):

shadPS4 can technically run encrypted eboots, if you ignore the fact that it will handle it as if it's unencrypted and will crash immediately due to garbage data. This is because a lot of things in this project don't have any form of error checking, so you can even open any random file with it, if you want to, but that will also just crash.

<!-- gh-comment-id:2563966952 --> @kalaposfos13 commented on GitHub (Dec 27, 2024): shadPS4 can technically run encrypted eboots, if you ignore the fact that it will handle it as if it's unencrypted and will crash immediately due to garbage data. This is because a lot of things in this project don't have any form of error checking, so you can even open any random file with it, if you want to, but that will also just crash.
Author
Owner

@StevenMiller123 commented on GitHub (Dec 27, 2024):

This is both not feasible, and not planned. Just dump your games through the proper methods and you shouldn't have any issues.

<!-- gh-comment-id:2563969202 --> @StevenMiller123 commented on GitHub (Dec 27, 2024): This is both not feasible, and not planned. Just dump your games through the proper methods and you shouldn't have any issues.
Author
Owner

@mailwl commented on GitHub (Dec 27, 2024):

AFAIR, ps3 and ps vita private keys for decryption was right on console itself as usual file.
in ps4 private keys somewhere in hardware and cannot be extracted. so, there is 2 way to get decrypted games - decrypt by youself using jailbroken ps4, or download already decrypted. i think, both ways illegal, you don't "own" software (and hardware, ps4), even if you buy it.

<!-- gh-comment-id:2564052561 --> @mailwl commented on GitHub (Dec 27, 2024): AFAIR, ps3 and ps vita private keys for decryption was right on console itself as usual file. in ps4 private keys somewhere in hardware and cannot be extracted. so, there is 2 way to get decrypted games - decrypt by youself using jailbroken ps4, or download already decrypted. i think, both ways illegal, you don't "own" software (and hardware, ps4), even if you buy it.
Author
Owner

@switchuwu commented on GitHub (Dec 28, 2024):

maybe i misunderstood something.
selfs are encrypted, even in an fpkg.
decrypting them turns them into elfs (in which the decryption key is always the same for fpkgs), which allows for binary editing in something like ida for example.

<!-- gh-comment-id:2564335247 --> @switchuwu commented on GitHub (Dec 28, 2024): maybe i misunderstood something. selfs are encrypted, even in an fpkg. decrypting them turns them into elfs (in which the decryption key is always the same for fpkgs), which allows for binary editing in something like ida for example.
Author
Owner

@switchuwu commented on GitHub (Dec 28, 2024):

a tool like this already exists
https://github.com/SocraticBliss/ps4_unfself

<!-- gh-comment-id:2564335608 --> @switchuwu commented on GitHub (Dec 28, 2024): a tool like this already exists https://github.com/SocraticBliss/ps4_unfself
Author
Owner

@mailwl commented on GitHub (Dec 28, 2024):

selfs are encrypted, even in an fpkg.

encrypted with key, which looks like: 0000000000000000000

<!-- gh-comment-id:2564336829 --> @mailwl commented on GitHub (Dec 28, 2024): > selfs are encrypted, even in an fpkg. encrypted with key, which looks like: 0000000000000000000
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
starred/shadPS4#669
No description provided.