forums.ps2dev.org Forum Index forums.ps2dev.org
Homebrew PS2, PSP & PS3 Development Discussions
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

Encrypted MEMCARD1.DAT and 2? (PSX games)

 
Post new topic   Reply to topic    forums.ps2dev.org Forum Index -> PSP Development
View previous topic :: View next topic  
Author Message
melado



Joined: 18 Sep 2006
Posts: 7

PostPosted: Thu Dec 28, 2006 9:59 am    Post subject: Encrypted MEMCARD1.DAT and 2? (PSX games) Reply with quote

Hi.

With all the PSX stuff on the PSP, everybody is re-taking their old games. Some even have saved games where continue from.

There are two files for each PSX game, called MEMCARD1.DAT and MEMCARD2.DAT, of 131120 bytes of size each, and with obvious content. They look like encrypted with a different key for each game and memory slot (even when all game slots are empty, file 1 and 2 are different).

I tried using a memory card file from ePSXe (131072 bytes), but it doesn't work, I get a 80000004 error.

So... I'm just a noob without much knowledge about this topic, and this is everything I could get. Now it's your turn ;)

Any ideas?
Back to top
View user's profile Send private message
FreePlay



Joined: 04 Jan 2006
Posts: 71
Location: Schenectady, New York, USA

PostPosted: Sat Dec 30, 2006 11:00 am    Post subject: Reply with quote

80000004 seems to be a catch-all error code for the POPS emulator, in my experience. I get the same error when I try to run it from my Undiluted Platinum chip.

I assume that the data is encrypted, probably in the same fashion as essentially all the other PSP savedata. Once we figure out the key for encryption (which must be stored somewhere in either the DATA.PSP of the EBOOT or in the firmware itself), decrypting and re-encrypting the POPS savedata should be no problem - assuming, of course, they haven't completely changed the way this is done.
Back to top
View user's profile Send private message
adrahil



Joined: 16 Mar 2006
Posts: 277

PostPosted: Sat Dec 30, 2006 7:00 pm    Post subject: Reply with quote

@melado: There now is CWCHEAT which accepts loading memory cards from epsxe :)

@FreePlay: It is plain old encryption :) It just seems that the key changes with the game.... I'm not sure though :s
Back to top
View user's profile Send private message
melado



Joined: 18 Sep 2006
Posts: 7

PostPosted: Sun Dec 31, 2006 1:42 am    Post subject: Reply with quote

adrahil wrote:
@melado: There now is CWCHEAT which accepts loading memory cards from epsxe :)[

Oh! Could you give me more information about this? Any URL or something? Thanks!

Edit: okay, I found it by myself: http://www.maxconsole.net/?mode=news&newsid=13140 :)
Back to top
View user's profile Send private message
niemand0815



Joined: 27 Dec 2005
Posts: 10

PostPosted: Mon Jan 08, 2007 9:06 pm    Post subject: Reply with quote

i find the cwcheat solution to use savegames a bit complicated, also there are some games which have problems with it.

thus a method of encrypting and decrypting the memcards on the ms would be perfect if it can result in a gme->.dat converter for pops :-)
Back to top
View user's profile Send private message
FreePlay



Joined: 04 Jan 2006
Posts: 71
Location: Schenectady, New York, USA

PostPosted: Thu Jan 11, 2007 9:41 am    Post subject: Reply with quote

Well, there seems to be a universal encryption/decryption key stored in the POPS emulator, but all attempts thus far to actually use it seem to be failing. At the very least, the savedata encryption/decryption/utility samples in the SDK don't work.
Back to top
View user's profile Send private message
adrahil



Joined: 16 Mar 2006
Posts: 277

PostPosted: Thu Jan 11, 2007 9:44 am    Post subject: Reply with quote

Encryption/decryption is not only using chnnlsv, but also pipes all sceIo* commands thru a DRM-like filter, which decodes them/encodes them/does various things. (FYI The filter is installed in iofilemgr_dnas.prx, by the IoFileMgrForKernel_42F954D4 function, and modifies the output of some sceIo functions... I got the command figured out, but i'm too lazy to post it or even test it...)
Back to top
View user's profile Send private message
weltall



Joined: 20 Feb 2004
Posts: 310

PostPosted: Sat Jan 13, 2007 8:31 am    Post subject: Reply with quote

niemand0815 wrote:
i find the cwcheat solution to use savegames a bit complicated, also there are some games which have problems with it.

thus a method of encrypting and decrypting the memcards on the ms would be perfect if it can result in a gme->.dat converter for pops :-)

i don't see what's complicated it's more simple than copying a file to psp putting there the psp header loading it with an app which does the encryption and save closing it and loading your game and the inverse for the decrypting.
oh and forget doing it on a pc.

games doesn't have problems with cwcheat you just need to load saves earlier (keep select pressed while booting up and load when the menu appears) and all games reported as not working with certain saves didn't work even on epsxe
Back to top
View user's profile Send private message Visit poster's website
Alcahest



Joined: 25 Mar 2005
Posts: 135

PostPosted: Sat Jan 13, 2007 10:45 am    Post subject: Reply with quote

I agree with the above, the cwcheat function couldn't be easier to use and worked flawlessly on every attempt in here; kudos welt ;)
Later,

Alcahest
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic    forums.ps2dev.org Forum Index -> PSP Development All times are GMT + 10 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2005 phpBB Group