Encrypted Savedata In PS3 Game With Key?

Extraction and unpacking of game archives and compression, encryption, obfuscation, decoding of unknown files
Miles2345
Posts: 76
Joined: Thu Oct 16, 2014 3:05 am

Encrypted Savedata In PS3 Game With Key?

Post by Miles2345 »

Hi. I have a game that I have the save data for (LittleBigPlanet 2), in both "exported" and in raw on-the-console format. I put this under "Game Archive" because the save data profiles are truly archives when they're in their raw format on the console and I figure someone might know what direction to go here.

I am assuming the save data is in an encrypted format because many PS3 games do this.

The unencrypted version of the file is an archive containing all of the user's profile information, and their items created in game etc. The encrypted version is exactly the same filesize but contains no readable data other than a 4-byte magic number at the end of the file "FAR4"

Essentially what I would like to do is, be able to de-encrypt save file profiles exported from normal, non-jailbroken PS3 consoles and view their contents.

I have a question, is it possible to figure out how the game creates these profile exports simply by looking at the exported version, and comparing it to the raw on-the-console format?

Thanks in advance to anyone who can help.

There's 4 samples in this archive, 2 "exported" / "encrypted" files, made from profile exports, 2 "on the console" profiles before they've been exported.

http://puu.sh/qnBPQ.zip

And, while exporting said profiles, the game output this to the ps3's debugging log, if it even helps (there's a hash mentioned)

Code: Select all

SS: Save /dev_hdd0/game/BCUS98245_USER1/USRDIR/bigfart13: 0/1 @ 116.294724SS: Saving 575188 bytes (here: 0, size: 575188) as BIG000
SS: FileRead @ 116.295128
SS: post FileRead @ 116.348625
SS: HASHINATE e12a2ef6c87f90bdc785ed96bd507bd94bdd43fd
sha1 6.478534
tea 15.267644

Code: Select all

SS: Save /dev_hdd0/game/BCUS98245_USER1/USRDIR/bigfart14: 0/1 @ 111.363510SS: Saving 122336 bytes (here: 0, size: 122336) as BIG000
SS: FileRead @ 111.363914
SS: post FileRead @ 111.367271
SS: HASHINATE 66f2b902c0ff9b36974d82b60b50e327a592a5b9
sha1 1.930689
tea 2.746416
Last edited by Miles2345 on Thu Aug 04, 2016 9:29 pm, edited 3 times in total.
Miles2345
Posts: 76
Joined: Thu Oct 16, 2014 3:05 am

Re: Comparing Savedata In PS3 Game

Post by Miles2345 »

When re-importing the profiles back into the game, I got these debug output messages;

Code: Select all

SS: Load /dev_hdd0/game/BCUS98245/USRDIR/output/bigfartbuild57A110E3: 0/1, reading 575188 bytes
untea 15.774373
SL: UNHASHINATE e12a2ef6c87f90bdc785ed96bd507bd94bdd43fd
SL: STORED HASHINATE e12a2ef6c87f90bdc785ed96bd507bd94bdd43fd
SS: Save was written at revision 950,0


Code: Select all

SS: Load /dev_hdd0/game/BCUS98245/USRDIR/output/bigfartbuild57A11088: 0/1, reading 122336 bytes
untea 2.698634
SL: UNHASHINATE 66f2b902c0ff9b36974d82b60b50e327a592a5b9
SL: STORED HASHINATE 66f2b902c0ff9b36974d82b60b50e327a592a5b9
SS: Save was written at revision 950,0
Miles2345
Posts: 76
Joined: Thu Oct 16, 2014 3:05 am

Re: Comparing Savedata In PS3 Game

Post by Miles2345 »

Additionally, here's two other files included in each save, given respective folders:
http://puu.sh/qnDoI.zip
Miles2345
Posts: 76
Joined: Thu Oct 16, 2014 3:05 am

Re: Encrypted Savedata In PS3 Game With Key?

Post by Miles2345 »

Changed the title of the thread to be a little less vague
LBPPlayer7
Posts: 23
Joined: Mon Jul 17, 2017 10:36 am

Re: Encrypted Savedata In PS3 Game With Key?

Post by LBPPlayer7 »

I need to be able to decrypt these to be able to swap levels between story level and a my moon level