Page 1 of 1

.sdat files (playstation 3) decryption method

Posted: Tue Nov 01, 2011 7:19 pm
by RangerRus
Hello. Today we'll talk about .sdata encrypted files and HOW to decrypt and then "encrypt" them back.

First, i've to say about why we should know about this.
There are many games which included such file types on ps3, many of them not supported another languages (ie. russian).
And for their translation we need to decrypt this type of files (for example Red Dead Redemption or Demon's Souls).

Second, here is some information about encryption.
Even if .sdata files encrypted, we can create .sdata file without encryption from decrypted file and it will work in a game.
For this purpose you should use a standart SDK programm "make_sdata.exe".
This (and other files we will talk about) here, in sdata-archive: * snip

Next, about how to decrypt them.
Well, this is hard - you need: 1) jailbroken ps3 for real tests (or smbd. who got it) 2)SONY PS3 SDK (I think, you should take DUPLEX 3.40 version) 3) an encrypted file (examples in my sdata-archive).
When the SDK would be downloaded, make all preparations to work with it and go next part:

To decrypt this files we should create a special "game" and run it from game manager, like Multiman.
The question is how to build eboot.bin file we need it for. Well, some part of the answer is here: http://asmodean.reverse.net/pages/extttdpk.html
Let's try to understand what is this all in extttdpk.zip (included in my sdata-archive).
First, we should to read SDATA-Overview_e.pdf (take it from my sdata-archive).
It says that decryption of this file can be proceed by a function cellFsDataOpen() and other functions, which must be used when you create a game, i.e. EBOOT.BIN.

Ok, let's open extttdpk.zip:
1) extttdpk_v1.exe, extttdpk_v2.exe, extttdpk.cpp are files we no need in them.

folder decrsdat:
2) decrsdat.cpp - source C file we will need to create EBOOT.BIN
3) PS3_GAME folder: it's done folder of our "game"
4) decrsdat.conf & decrsdat.build we no need to modify - it have to use while compiling EBOOT.BIN with decrsdat.cpp.

folder game -> usrdir:
5) decrsdat.lst - simple file where we write about what file we need to decrypt (open with Notepad++). Example:

Code: Select all

# input_file output_file
/dev_hdd0/game/LAUN12345/GAMEZ/BLJM60166/PS3_GAME/USRDIR/datadkh.sdat    /dev_usb/datadkh
Here we need to decrypt file "datadkh.sdat" (which have placed in /dev_hdd0/game/LAUN12345/GAMEZ/BLJM60166/PS3_GAME/USRDIR/) and place decrypted copy "datadkh" of it in /dev_usb/ (ie. external HDD).

So, here is instruction:
1) Make eboot.bin with SDK & decrsdat.cpp & decrsdat.conf & decrsdat.build.
2) Edit decrsdat.lst with what files you want to decrypt.
3) Place compiled EBOOT.BIN in PS3_GAME\USRDIR
4) Place PS3_GAME folder on internal HDD
5) Run "game" and catch decrypted files on ext.HDD.

Now it is time for my question. Is there somebody who have experience with ps3 SDK?
There are much people who need this EBOOT.BIN.

Re: .sdat files (playstation 3) decryption method

Posted: Sat Apr 21, 2012 12:49 pm
by xboxmaniac
Is it working ?

Re: .sdat files (playstation 3) decryption method

Posted: Thu May 03, 2012 7:12 pm
by xboxmaniac
Can somebody make BMS Script please ? :)

Re: .sdat files (playstation 3) decryption method

Posted: Mon May 07, 2012 4:40 am
by bxaimc
You can't make a BMS script for something that physically requires a PS3

Re: .sdat files (playstation 3) decryption method

Posted: Mon May 07, 2012 7:26 pm
by xboxmaniac
Can somebody make videotutorial how unpack and repack sdat files please?
I'm trying it about year.

Re: .sdat files (playstation 3) decryption method

Posted: Thu May 17, 2012 11:39 am
by RangerRus
*.sdat is like *.edat but with static key
you can made own programm to decrypt/encrypt it on pc
use JuanNadie's info about algo
http://www.ps3devwiki.com/wiki/Talk:EDAT_files

p.s. someone made it already

Re: .sdat files (playstation 3) decryption method

Posted: Wed May 23, 2012 7:44 pm
by jabber
RangerRus wrote:
p.s. someone made it already
Can you post the link or info about that ? Specfically the decryption and encryption tool. Unless you are talking about make_sdata.exe .. I dont think I can get that :(


Never mind. I found the tools you are talking about. but they are currently in source code only. So will have to wait for the compiled executables.

Re: .sdat files (playstation 3) decryption method

Posted: Thu Nov 29, 2012 9:18 am
by stephanehl
Please anyone can help me.

I need to decrypt ps3 .sdat for the game Dai-2-Ji Super Robot Taisen OG on ps3.

can anyone give me a guide how to do so.

Re: .sdat files (playstation 3) decryption method

Posted: Sun Apr 20, 2014 11:34 pm
by GovanifY
Ya can use my tool for doing it: http://www.govanify.x10host.com/_files/SDATA_DEC.exe
Just drag 'n drop the file ;)

Re: .sdat files (playstation 3) decryption method

Posted: Fri Nov 13, 2015 3:36 pm
by shadowlonely1989
GovanifY wrote:Ya can use my tool for doing it: http://www.govanify.x10host.com/_files/SDATA_DEC.exe
Just drag 'n drop the file ;)
Hi! Could you support Compress back .sdata? I try to edit text from Downtown Nekketsu Koushinkyoku: Soreyuke Daiundoukai (PS3 game)
Thanks for any help.

Re: .sdat files (playstation 3) decryption method

Posted: Wed Jul 06, 2016 7:17 am
by rballad
can anyone reupload the SDATA_DEC.exe?

Re: .sdat files (playstation 3) decryption method

Posted: Fri Jul 08, 2016 12:25 pm
by happydance
there are a lot of homebrew tools that can decrypt and encrypt SDAT

I personally use make_npdata, but scetool can also be used

Code: Select all

***************************************************************************

make_npdata v1.3.4 - PS3 EDAT/SDAT file encrypter/decrypter/bruteforcer.
                   - Written by Hykem (C).

***************************************************************************

Usage: make_npdata [-v] -e <input> <output> <format> <data> <version>
                           <compress> <block> <license> <type> <cID>
                           <klic> <rap/rif>
       make_npdata [-v] -d <input> <output> <klic> <rap/rif>
       make_npdata [-v] -b <input> <source> <mode>

- Modes:
[-v]: Verbose mode
[-e]: Encryption mode
[-d]: Decryption mode
[-b]: Bruteforce mode

- Encryption mode only:
<format>:   0 - SDAT
            1 - EDAT
<data>:     0 - Debug data
            1 - Finalized data
<version>:  1 - EDAT version 1
            2 - EDAT/SDAT version 2
            3 - EDAT/SDAT version 3
            4 - EDAT/SDAT version 4
<compress>: 0 - Disable compression
            1 - Enable compression
<block>:    Block size in KB (1, 2, 4, 8, 16, 32)

- Finalized EDAT only:
<license>:  1 - Network license (not supported)
            2 - Local license (uses RAP file as key)
            3 - Free license (uses klic as key)
<type>:     00 - Common
            01 - PS2 EDAT
            20 - PSP Remasters
            21 - Modules (disc bind)
            30 - Unknown
<cID>:      Content ID (XXYYYY-AAAABBBBB_CC-DDDDDDDDDDDDDDDD)

- Encryption and decryption modes:
<klic>: 0 - No key
        1 - NPDRM OMAC key 1 (free license key)
        2 - NPDRM OMAC key 2
        3 - NPDRM OMAC key 3
        4 - PS3 key (klic_dec_key)
        5 - PSX key (PSOne Classics)
        6 - PSP key 1 (PSP Minis)
        7 - PSP key 2 (PSP Remasters)
        8 - Custom key (read from input or klic.bin file)
<rap/rif>: RAP file for encryption/decryption or rifkey.bin (optional)

- Bruteforce mode:
<source>: ELF file source for klic
<mode>: 0 - Binary
        1 - Text
        2 - Unicode text

Re: .sdat files (playstation 3) decryption method

Posted: Thu Jul 14, 2016 2:18 pm
by AnonBaiter
>make_npdata
I tried to find this tool with a functional link and failed. Do you know where to find it?

Re: .sdat files (playstation 3) decryption method

Posted: Fri Jul 15, 2016 7:34 am
by happydance
here

make_npdata 1.3.4 (10-05-2014)
https://drive.google.com/file/d/0Byva3J ... sp=sharing