Important information: this site is currently scheduled to go offline indefinitely by end of the year.

.sdat files (playstation 3) decryption method

Read or post about compression. And decompression. Or ask questions how to decompress your files.
Post Reply
User avatar
RangerRus
beginner
Posts: 21
Joined: Mon Apr 18, 2011 6:17 pm
Been thanked: 9 times

.sdat files (playstation 3) decryption method

Post 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.
Last edited by Mr.Mouse on Thu May 17, 2012 1:49 pm, edited 1 time in total.
Reason: Rules violation
xboxmaniac
beginner
Posts: 39
Joined: Sat Apr 21, 2012 8:19 am
Has thanked: 1 time
Been thanked: 6 times

Re: .sdat files (playstation 3) decryption method

Post by xboxmaniac »

Is it working ?
xboxmaniac
beginner
Posts: 39
Joined: Sat Apr 21, 2012 8:19 am
Has thanked: 1 time
Been thanked: 6 times

Re: .sdat files (playstation 3) decryption method

Post by xboxmaniac »

Can somebody make BMS Script please ? :)
bxaimc
advanced
Posts: 78
Joined: Sun May 09, 2010 8:54 pm
Been thanked: 10 times
Contact:

Re: .sdat files (playstation 3) decryption method

Post by bxaimc »

You can't make a BMS script for something that physically requires a PS3
xboxmaniac
beginner
Posts: 39
Joined: Sat Apr 21, 2012 8:19 am
Has thanked: 1 time
Been thanked: 6 times

Re: .sdat files (playstation 3) decryption method

Post by xboxmaniac »

Can somebody make videotutorial how unpack and repack sdat files please?
I'm trying it about year.
User avatar
RangerRus
beginner
Posts: 21
Joined: Mon Apr 18, 2011 6:17 pm
Been thanked: 9 times

Re: .sdat files (playstation 3) decryption method

Post 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
jabber
ultra-n00b
Posts: 1
Joined: Wed May 23, 2012 7:43 pm

Re: .sdat files (playstation 3) decryption method

Post 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.
stephanehl
beginner
Posts: 23
Joined: Fri Dec 19, 2008 7:25 pm
Has thanked: 1 time

Re: .sdat files (playstation 3) decryption method

Post 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.
GovanifY
advanced
Posts: 59
Joined: Wed Apr 16, 2014 9:25 pm
Location: In the depths of a game...
Has thanked: 1 time
Been thanked: 33 times
Contact:

Re: .sdat files (playstation 3) decryption method

Post 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 ;)
The only limit I've encountered so far is my brain.

-----------------------------------------------
Ya can check my work here:
http://www.govanify.blogspot.fr
http://www.govanify.com
https://twitter.com/GovanifY
shadowlonely1989
veteran
Posts: 83
Joined: Sun Nov 30, 2014 1:49 am
Has thanked: 45 times
Been thanked: 8 times
Contact:

Re: .sdat files (playstation 3) decryption method

Post 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.
rballad
n00b
Posts: 12
Joined: Mon Aug 11, 2014 2:40 am
Has thanked: 3 times

Re: .sdat files (playstation 3) decryption method

Post by rballad »

can anyone reupload the SDATA_DEC.exe?
happydance
beginner
Posts: 28
Joined: Thu Apr 17, 2014 3:11 pm
Has thanked: 1 time
Been thanked: 3 times

Re: .sdat files (playstation 3) decryption method

Post 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
AnonBaiter
veteran
Posts: 82
Joined: Thu Oct 15, 2015 8:15 pm
Has thanked: 18 times
Been thanked: 8 times

Re: .sdat files (playstation 3) decryption method

Post by AnonBaiter »

>make_npdata
I tried to find this tool with a functional link and failed. Do you know where to find it?
happydance
beginner
Posts: 28
Joined: Thu Apr 17, 2014 3:11 pm
Has thanked: 1 time
Been thanked: 3 times

Re: .sdat files (playstation 3) decryption method

Post by happydance »

here

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