libretro/PSXtract

Name: PSXtract

Owner: libretro

Description: Tool to decrypt and convert PSOne Classics from PSP/PS3. Saved from

Created: 2016-05-02 20:34:42.0

Updated: 2017-02-26 17:45:17.0

Pushed: 2016-05-02 20:51:28.0

Homepage: https://github.com/Hykem/psxtract

Size: 119

Language: C

GitHub Committers

UserMost Recent Commit# Commits

Other Committers

UserEmailMost Recent Commit# Commits

README

psxtract

Tool to decrypt and convert PSOne Classics from PSP/PS3. Written by Hykem.

This tool allows you to decrypt a PSOne Classics EBOOT.PBP on your PC, using the emulated PSP method. It features a modified version of libkirk's source code to support DES encryption/decryption and the AMCTRL functions.

Notes

Using the “-c” option in the command line, psxtract will additionally convert the resulting ISO image to a mountable PSOne CD-ROM binary image (BIN/CUE).

You may supply a KEYS.BIN file to the tool, but this is not necessary. Using the internal files' hashes, psxtract can calculate the key by itself.

Game file manual decryption is also supported (DOCUMENT.DAT).

For more details about the algorithms involved in the extraction process please check the following sources:

PBP unpacking: https://github.com/pspdev/pspsdk/blob/master/tools/unpack-pbp.c

PGD decryption: http://www.emunewz.net/forum/showthread.php?tid=3834 (initial research) https://code.google.com/p/jpcsp/source/browse/trunk/src/jpcsp/crypto/PGD.java (JPCSP) https://github.com/tpunix/kirk_engine/blob/master/npdrm/dnas.c (tpunix)

AMCTRL functions: https://code.google.com/p/jpcsp/source/browse/trunk/src/jpcsp/crypto/AMCTRL.java (JPCSP) https://github.com/tpunix/kirk_engine/blob/master/kirk/amctrl.c (tpunix)

CD-ROM ECC/EDC: https://github.com/DeadlySystem/isofix (Daniel Huguenin)

Working games and compatibility

The following games have been tested with ePSXe and are known to work. All games were bought from the PSN US store unless another store is indicated.

If a game does not appear on this list, that does not mean it won't work - it means it hasn't been tested yet. All tested games have worked so far. If you experience graphic issues, it will be due to the settings of your emulator. For example, in Final Fantasy IX and Breath of Fire IV, the battle intro animation will not happen or look different from the original game with default ePSXe settings. Make sure to set “Framebuffer effects” to 1 or more in the settings of Pete's graphics plugin. Enabling off-screen drawing is also worth a shot. The games from the PSN store should be full versions. For example, Crash Bandicoot 3 even includes the demo of Spyro the Dragon which is accessible through a cheat code in the main menu, just like the original game.

Credits

Daniel Huguenin (implementation of ECC/EDC CD-ROM patching)

Draan, Proxima and everyone involved in kirk-engine (libkirk source code)

tpunix (C port and research of the PGD and AMCTRL algorithms)

PSPSDK (PBP unpacking sample code)


This work is supported by the National Institutes of Health's National Center for Advancing Translational Sciences, Grant Number U24TR002306. This work is solely the responsibility of the creators and does not necessarily represent the official views of the National Institutes of Health.