bucanero / apollo-ps3

Apollo Save Tool (PS3)
http://www.bucanero.com.ar/
GNU General Public License v3.0
358 stars 23 forks source link

PS2 Classic config encryption support #44

Closed bucanero closed 3 years ago

bucanero commented 3 years ago

All the PS2 classic encryption code is already there on Apollo, but the CONFIG encryption is missing.

To encrypt the config files, execute this command from CMD.EXE:

ps2classic.exe e cex ps2.key SCES_123.45.CONFIG CONFIG CONFIG 2P0001-PS2U10000_00-0000111122223333

Replace SCES_123.45.CONFIG with the actual file name of the CONFIG file that you want to encrypt.

e = encrypt cex = target mode (cex or dex) ps2.key = binary file containing the key (the following 16 bytes: E4 E5 4F...) SCES_123.45.CONFIG = decrypted CONFIG file CONFIG = Output file name CONFIG = Name of output file 2P0001-PS2U10000_00-0000111122223333 = Content ID (use that constant for convenience)

The easy way: Use the CONFIG files already provided in http://ps3.aldostools.org/ps2config.html They are encrypted if you download them from the ENC (PS2 Classics).

bucanero commented 3 years ago

Added in 517dc4c157dd1ffd27c51d859cda7f2b311ab449

bucanero commented 3 years ago

Additional notes from @aldostools:

If you create a PS2 Classics PKG the config file must be named "CONFIG" in upper case and without any file extension. The config file and the ISO should be encrypted.

Example: /dev_hdd0/game/PS2GAMEID/USRDIR/ISO.BIN.EDAT /dev_hdd0/game/PS2GAMEID/USRDIR/ISO.BIN.ENC /dev_hdd0/game/PS2GAMEID/USRDIR/CONFIG <--- without .ENC

If you use webMAN MOD, there are 2 kind of PS2 games supported: ISO and .BIN.ENC

1-The .BIN.ENC stored in /dev_hdd0/PS2ISO support encrypted CONFIG files. The CONFIG should be name like the .BIN.ENC + .CONFIG. Examples: /dev_hdd0/PS2ISO/Jeux.BIN.ENC <-- The PS2 Classic ISO encrypted /dev_hdd0/PS2ISO/Jeux.BIN.ENC.CONFIG <-- The CONFIG encrypted or /dev_hdd0/PS2ISO/Jeux.CONFIG <-- The CONFIG encrypted

The encrypted config files are found in the ENC folder of the PS2 CONFIG database. All they are named like SLES_999.99.ENC

If you don't put the CONFIG file in /dev_hdd0/PS2ISO, webMAN MOD will get it from the ENC folder of PS2CONFIG database

2-The ISO are only supported on CFW, and support unencrypted *.CONFIG files in the same folder /dev_hdd0/PS2ISO The CONFIG should be name like the .ISO + .CONFIG. Examples: /dev_hdd0/PS2ISO/Jeux.ISO <-- The PS2 ISO non-encrypted /dev_hdd0/PS2ISO/Jeux.ISO.CONFIG <-- The CONFIG non-encrypted

The encrypted config files are found in the other folders of the PS2 CONFIG database. All they are named like SLES_999.99.CONFIG