• PS3HaX developer Snowydew along with the help of software devloper KDSBest released some interesting Edat Encryption/Decryption tool’s on Sunday, here is what Snowydew said when i asked him about the tools:

    Stupid question, what does your tools do ?
    was wondering if i could add a bit to the post
    extracts iso.bin.edats
    post ?
    when kds converted it over he found out that act.dat and rif can also be decrypted
    as well as possibly re encrypted
    errr the thread about it / news post, haven’t done this in ages
    the reason the re encryption process is a POC, is because even though we can resign it, we’re unfamiliar with certain bytes in the header (What i wanted to ask if you could add)
    I havent done one yet, but if you want to do it, i will front poage it, it would look more proffesional coming from someone that knows exactly what it does :)
    well it’s full sources for all the versions, the java ones are the originals that i’ve had since december
    looked aroudn for people to convert over to something usable since you need the java sdk and netbeans installed to even use it or compile it, so we got it to c# through kds :)
    when converting it over he found out little aspects to rif and act.dats, i’m not sure if he included them 100% though

    Snowydew> so the decryption as it stands right now, an do iso.bin.edat, requires idps, rif and act.dat for the games.
    re encryption i believe it needs the “fake” signed ones, as well as an idps (not sure on the idps)
    however the second method only requires the idps and the .rap file
    this does not cover licenseing games i believe (It could, but we haven’t tested it)
    the re encryption algo is in the encryption one, but again haven’t been able to test it completely (reason i was asking around on twitter awhile back)

    Source PS3HaX IRC
    and
    Snowydews Twitter

    Download iso.bin.edat

    Discuss in Forums (41)


  • 41 Comments

    1. H3avyRa1n
      05-22-2012
      03:42 AM
      1

      all I have to say is

    2. xflarex
      05-22-2012
      03:44 AM
      2

      Releases, releases, and more releases. I love spring:P

    3. KDSBest
      05-22-2012
      05:02 AM
      4

      Originally Posted by xflarex View Post
      Releases, releases, and more releases. I love spring:P
      It's just KDSBest and not spring jk

    4. mcmrc1
      05-22-2012
      05:10 AM
      5

      i read the frontpage post but i didnt understand for what is this tool exactly ?

    5. KDSBest
      05-22-2012
      05:13 AM
      6

      Originally Posted by mcmrc1 View Post
      i read the frontpage post but i didnt understand for what is this tool exactly ?
      EDAT encryption/decryption.

    6. mcmrc1
      05-22-2012
      05:14 AM
      7

      [MENTION=45614]KDSBest[/MENTION] ok thx and for what is the EDAT for ? thx....

    7. vatomalo
      05-22-2012
      05:24 AM
      8

      i think its a license file from PSN games......

    8. KDSBest
      05-22-2012
      06:15 AM
      9

      Originally Posted by mcmrc1 View Post
      [MENTION=45614]KDSBest[/MENTION] ok thx and for what is the EDAT for ? thx....
      I dunno what the file in PSN Games is for, I just ported it and reversed the crypto to make Reencryption possible. Sorry ^^

    9. alienkid
      05-22-2012
      07:53 AM
      10

      Shout out to [MENTION=190503]snowydew[/MENTION] and [MENTION=45614]KDSBest[/MENTION]!

      however the second method only requires the idps and the .rap file
      this does not cover licenseing games i believe (It could, but we haven’t tested it)
      the re encryption algo is in the encryption one, but again haven’t been able to test it completely (reason i was asking around on twitter awhile back)
      So if I'm understanding this, this will work on .rap files also?....

    10. dok_max
      05-22-2012
      08:04 AM
      11

      Plz a little clarification for "Beginners" of what all this is about ;P ?!!!!!

    11. gdsn
      05-22-2012
      08:04 AM
      12

      Will this give us >4.0 cfw? Will sell my Ps3 if it doesnt happen this spring. Nvm just trolling..
      It's nice to see ppl still contribute to this scene full of flamers and jerks.
      Keep up the good work!

    12. V6ser
      05-22-2012
      08:12 AM
      13

      YUPII!

      I like Snowy

    13. JuanNadie
      05-22-2012
      08:52 AM
      14

      Congrats [MENTION=190503]snowydew[/MENTION] and [MENTION=45614]KDSBest[/MENTION]. Good job (specially for providing source code).

      I ran the app and there is no text field for klicensee so I assume that this release is only for PSX games.

      For those asking this tool (once improved) will allow you to do what [MENTION=204584]EXE.trim.ALL[/MENTION] did months ago... freeing DLC, PSX, PS2 and some PSN game. However my favorite use is SDAT. A lot of developers encrypt resource files on SDAT... now we can do our own mods/translation

      If you want to get a bit technical (on decryption) here is a disccussion on the topic (the first pages are on self and then changes to EDAT):

      http://www.ps3hax.net/showthread.php?t=28303

      BTW if you have a RAP you don't need the IDPS nor act.dat nor RIF...

      PS: For devs, if any of you knows how an isolated SPU reads the config ring please contact me.

    14. najtrows
      05-22-2012
      09:39 AM
      15

      I'm just happy that something happens! I'm too uneducated and stupid myself to do anything like this, really appreciate people who keeps the scene alive!

      LOVE YOU!

    15. nevik
      05-22-2012
      09:51 AM
      16

      Snowy and KDSBest thank you for all your hard work!

    16. concretecork
      05-22-2012
      11:15 AM
      17

      Thanks so much guys, I have been waiting for this!

    17. bigo93
      05-22-2012
      11:33 AM
      18

      Originally Posted by JuanNadie View Post
      freeing DLC, PSX, PS2 and some PSN game..
      Is that freeing them for all consoles including slims, or still just only for consoles which are already BC?

      Hope this stuff does lead to something nice for us users soon


      Originally Posted by gdsn View Post
      Will this give us >4.0 cfw? Will sell my Ps3 if it doesnt happen this spring. Nvm just trolling..
      It's nice to see ppl still contribute to this scene full of flamers and jerks.
      Keep up the good work!
      :O I'm no flamer! I'm just a jerk :D

    18. KDSBest
      05-22-2012
      11:50 AM
      19

      Originally Posted by JuanNadie View Post
      Congrats [MENTION=190503]snowydew[/MENTION] and [MENTION=45614]KDSBest[/MENTION]. Good job (specially for providing source code).

      I ran the app and there is no text field for klicensee so I assume that this release is only for PSX games.

      For those asking this tool (once improved) will allow you to do what [MENTION=204584]EXE.trim.ALL[/MENTION] did months ago... freeing DLC, PSX, PS2 and some PSN game. However my favorite use is SDAT. A lot of developers encrypt resource files on SDAT... now we can do our own mods/translation

      If you want to get a bit technical (on decryption) here is a disccussion on the topic (the first pages are on self and then changes to EDAT):

      http://www.ps3hax.net/showthread.php?t=28303

      BTW if you have a RAP you don't need the IDPS nor act.dat nor RIF...

      PS: For devs, if any of you knows how an isolated SPU reads the config ring please contact me.
      The question is, why do you bother the config ring?

    19. catalinnc
      05-22-2012
      12:53 PM
      20

      first, thanks a lot for this tool...when can we expect a release that can deal with ps3 psn edats (from psn ps3 games or dlcs)?..this one is ps1 only...
      _

    20. screwhead
      05-22-2012
      01:21 PM
      21

      Very cool, thAnks

    21. kamalsingh
      05-22-2012
      01:25 PM
      22

      happy birthday GregoryRasputin

    22. snowydew
      05-22-2012
      02:05 PM
      23

      Originally Posted by JuanNadie View Post
      Congrats [MENTION=190503]snowydew[/MENTION] and [MENTION=45614]KDSBest[/MENTION]. Good job (specially for providing source code).

      I ran the app and there is no text field for klicensee so I assume that this release is only for PSX games.

      For those asking this tool (once improved) will allow you to do what [MENTION=204584]EXE.trim.ALL[/MENTION] did months ago... freeing DLC, PSX, PS2 and some PSN game. However my favorite use is SDAT. A lot of developers encrypt resource files on SDAT... now we can do our own mods/translation

      If you want to get a bit technical (on decryption) here is a disccussion on the topic (the first pages are on self and then changes to EDAT):

      http://www.ps3hax.net/showthread.php?t=28303

      BTW if you have a RAP you don't need the IDPS nor act.dat nor RIF...

      PS: For devs, if any of you knows how an isolated SPU reads the config ring please contact me.
      Long time old friend Wasn't 100% sure if you wanted to be quoted in it / as a contributor, if so i'll have that changed asap :P, KDSBest and you should have a talk, this time please no java D: NO JAVAAAA. Also as the what jaun said, it can be used for more things then it currently is being used for. Just have to further develop it, However, if anyone modifies the source or updates it we would love to see further addons to it :D (For the community at least)

    23. sandungas
      05-22-2012
      02:29 PM
      24

      Good proof of concept, more pieces of the puzzle are out

      Originally Posted by catalinnc View Post
      first, thanks a lot for this tool...when can we expect a release that can deal with ps3 psn edats (from psn ps3 games or dlcs)?..this one is ps1 only...
      _
      Its poorly explained in the thread, but this tool is not focused in psn, but in rebuilding PS1 games in ps3 format from a copy of the original disc

      The fact is there is an .iso inside all "ps1 classic" games and "psp minis" games... and probably "ps2 classic" games
      There are firmware modules (the ones labeled 9660) that can read this .iso format that is an standard of the industry

      So theorically, if you can provide an .iso in the correct format (with the extended track info)... and with the hability of recreating his header and the rest of his structure you have a way to boot any ps1 game in any ps3 model

      *obiously there is no 100% compatibility in the emulators itself, so some games will not run, but expect a big number to work

      ------------
      With "psp minis"... there is no use because there are no minis discs to make a backup in .iso format

      ------------
      With "ps2 classics" probably has some things in common with PS1... but also some different things... can be a bit more complicated (and compatibility very low with ps3 slims)

    24. snowydew
      05-22-2012
      02:35 PM
      25

      Thank you sandungas, that was the "main" goal, but as juan said, switch the klicenses for the type you want to extract, (Might be need slight altering) but most of it's there. Some parts are still missing, however this will further a lot of things. Also, quick note. at the top of psone games iso.bin.edat, is 16byte key most likely used to decrypt the eboot.pbp, the rest as sandungas said, is most likely a .cue for the game itself. Another to mention is that per disc, it's exactly adds another MB to the iso.bin.edat, most likely for a compressed .cue or file locations, not entirely sure just yet. Let the games begin


      PS. We're still looking for psp minis with all the requirements to see the file structure inside of the iso.bin.edat. They're apparently rare nowadays so

    25. sandungas
      05-22-2012
      03:08 PM
      26

      And the "psp minis" released for psp years ago ? (not for ps3)

      The format is inherited from PSP, maybe changed a bit with the years, but im supposing not too much, this old games theorically can be "packed" to ps3 format

    26. IngPereira
      05-22-2012
      04:14 PM
      27

      There is the need to know the compression algorithm on the Edat? Like juan said some months ago that the algorithm old in java performs the decryption and re-encryption on the .edat but i mean if we want to make custom psn psx pkgs we need to get that ISO.BIN in plain text uncompressed.

    27. hellsing9
      05-22-2012
      05:12 PM
      28

      Thanks for this

    28. concretecork
      05-22-2012
      05:23 PM
      29

      I had thought this was to do psn games, but its still going in the right direction for what ive been trying to understand.Maybe someone can answer this for me here. I downloaded mini's from psn server and fixed them for psp then extracted the folders to look inside. I had the same game with the fix from ps3 extracted. I have been trying to figure out the difference with the fixes so that i could fix my other psp minis to play on ps3. The files were encrypted and i don't know enough about coding to understand it. Is this something different altogether?

    29. onenut
      05-22-2012
      06:08 PM
      30

      free psn games, thanks Sony

    30. whatpower
      05-22-2012
      06:22 PM
      31

      Originally Posted by onenut View Post
      free psn games, thanks Sony
      You outta your mind? Give thanks where thanks is due..

    31. Ada Love Lace
      05-23-2012
      01:30 AM
      32

      Nice to see talented people still paying attention to PS1 games.

      [MENTION=201930]JuanNadie[/MENTION] was speaking about EXE trim ALL release (and reactPSN after) and i noticed they weren t working when you export them to PSP because the KEYS.BIN is missing (NPUJ-12345/USRDIR/CONTENT/)
      It s because the game is turn on free content or is it a part of the missing bytes in the process?
      (can you "rewrite/restructuring in proper wiki " the infos you gave here on the ps3 dev wiki? thanks you for your thread and infos)

      (the key.bin needed to make it working after export can be "replaced"/ is the same/ with the one you got in normal case when you bought from PSN PSP or from PSP scene release // meaning for people who never used export: export work fine in the release of PSN games for PS3 if you added the Key.bin into folder Content before exporting the game to your psp, otherwise th game is not working on your PSP)


      [MENTION=190503]snowydew[/MENTION]dev, and [MENTION=45614]KDSBest[/MENTION] what is the use of the file: CONFIG? (PS1emu config file) it s just for ini the disc number (like starting directly to CD2) and what are the fews bytes "dancing" inside it (CRC to VM1 in case of PS3/ VMP in case of PSP?). Can we said it s similar than SYSTEM.CNF used in original PS1 game (this file, someone else from the PSX time can also answer to describe quickly)
      Thanks you for the attention on such area and the release and sorry in advance for the questions.

    32. JOshISPoser
      05-23-2012
      03:30 AM
      33

      exciting things are happening! i love seeing this stuff!

      i can't wait to play thps2 with little load time; i mean, any psone game but that game mainly (for me).

      i can almost see this leading to a way of forcing newer games to boot on 3.55 but there will be obvious compatibility errors but nothing anyone won't mind trying to figure out. then again, one step at a time because anything is possible

    33. snowydew
      05-23-2012
      03:31 AM
      34

      Originally Posted by Ada Love Lace View Post
      Nice to see talented people still paying attention to PS1 games.

      [MENTION=201930]JuanNadie[/MENTION] was speaking about EXE trim ALL release (and reactPSN after) and i noticed they weren t working when you export them to PSP because the KEYS.BIN is missing (NPUJ-12345/USRDIR/CONTENT/)
      It s because the game is turn on free content or is it a part of the missing bytes in the process?
      (can you "rewrite/restructuring in proper wiki " the infos you gave here on the ps3 dev wiki? thanks you for your thread and infos)

      (the key.bin needed to make it working after export can be "replaced"/ is the same/ with the one you got in normal case when you bought from PSN PSP or from PSP scene release // meaning for people who never used export: export work fine in the release of PSN games for PS3 if you added the Key.bin into folder Content before exporting the game to your psp, otherwise th game is not working on your PSP)


      [MENTION=190503]snowydew[/MENTION]dev, and [MENTION=45614]KDSBest[/MENTION] what is the use of the file: CONFIG? (PS1emu config file) it s just for ini the disc number (like starting directly to CD2) and what are the fews bytes "dancing" inside it (CRC to VM1 in case of PS3/ VMP in case of PSP?). Can we said it s similar than SYSTEM.CNF used in original PS1 game (this file, someone else from the PSX time can also answer to describe quickly)
      Thanks you for the attention on such area and the release and sorry in advance for the questions.
      np for the questions, we haven't fully documented much of it (because the need for "Examples" to see what are in there for a variety of tests). However sandungas might be able to help if he still has that txt file from way back somewhere, there are other smaller things we haven't fully documented, however we would like that if anyone does, please post it on the wiki for others. the only things I have personally looked at with the few others were the iso.bin.edats and that they're .cue files with a header, which is the most likely the decryption key for the eboot.pbp / bin (depends from what i've actually seen) and the rest calls the emulator with flags, for what exact I'm not sure just yet. As jaun said, currently this only fully supports decryption of psone games (Simple fix to add others through klicense keys). the encryption process isn't 100% tested, but if people want to help we can go from there. the headers from 0xb0 to 0x100 as kdsbest said. We currently don't fully know what these are so if anyone wants to help with that, that would be awesome.

    34. onenut
      05-23-2012
      06:26 AM
      35

      Originally Posted by whatpower View Post
      You outta your mind? Give thanks where thanks is due..
      thanks whatpower for blowing me last night

    35. tthousand
      05-23-2012
      11:51 AM
      36

      Originally Posted by onenut View Post
      thanks whatpower for blowing me last night
      Did he make your vagina hurt? BTW, thanks from me and the rest of the members for the swift prick licks, dick! Now assume the position...

    36. sandungas
      05-23-2012
      07:16 PM
      37

      The file structure of a decrypted iso.bin is divided in "blocks" and "clusters"

      Code:
      1 block = 1024 bytes (0x400)
      1 cluster = 16 blocks = 1024*16 bytes =16384 bytes (0x4000)
      First you have the header (1 block) <--- this header can be considered "patched" to the start of the file, doesnt count as part of first cluster... clusters are used only inside the "discs" areas
      Then the "disc 1" starts (1024 blocks, 64 clusters)
      Then the "disc 2" starts (another 1024 blocks, 64 clusters)
      etc...

      Inside the first clusters of each disc (this cluster can be considered another header specific for this disc) you have the "magic" PSISOIMG0000 that is different for "psp minis" (i dont remember)..... and probably another for "ps2 classics" (speculation)
      Also the "game_id"... "number of clusters"... some unknown counters... (probably blocks used or similar)
      But the most important area of this cluster is the 32 bytes (seems to be a key) displaced 0x800 bytes from the start of the cluster
      Then there is a block of padding
      And in the second cluster it begins the "file_table"... this table last to the end of the "disc 1" (and not-used clusters contains a checksum of 16 bytes)

      The file_table is composed of entries of 32 bytes each
      In each entry you have...the displacement from start of table, file size ?, cluster number (inside the iso) ?... etc...

      --------------------------------------
      Well... this file_table is pointing to the disc in iso format, and probably to "sectors" of the disc... it can be a TOC
      And here is where is important to take in account the track data mode of the old ps1 discs, because it had an special track (known as MODE2)


      Edit:
      The positions are always fixed, so for a game with 4 discs the important stuff is at this offsets:
      discs_start -----------> 0x000400 (disc1), 0x100400 (disc2), 0x200400 (disc3), 0x300400 (disc4)
      discs_keys -----------> 0x000C00 (disc1), 0x100C00 (disc2), 0x200C00 (disc3), 0x300C00 (disc4)
      discs_file_tables ------> 0x004400 (disc1), 0x104400 (disc2), 0x204400 (disc3), 0x304400 (disc4)

    37. sandungas
      05-24-2012
      06:14 PM
      38

      I just created a new wiki page: http://www.ps3devwiki.com/wiki/Iso.bin.edat

      All the iso.bin offsets are mapped, some of them are still unknown, but his positions are clear
      With this tables can be done a program to "read" iso.bin files to give an output list of all the positions, information, etc... (in a semi-human-readable format)

      Now its needed to identify the "unknown" areas by understanding the relationship with the real .iso structure
      The next step is to be able to generate this iso.bin files

      Feel free to help updating the page if you find something

    38. IngPereira
      05-24-2012
      06:42 PM
      39

      Originally Posted by sandungas View Post
      I just created a new wiki page: http://www.ps3devwiki.com/wiki/Iso.bin.edat

      All the iso.bin offsets are mapped, some of them are still unknown, but his positions are clear
      With this tables can be done a program to "read" iso.bin files to give an output list of all the positions, information, etc... (in a semi-human-readable format)

      Now its needed to identify the "unknown" areas by understanding the relationship with the real .iso structure
      The next step is to be able to generate this iso.bin files

      Feel free to help updating the page if you find something
      How do you uncompress that ISO.BIN right?

    39. sandungas
      05-24-2012
      07:19 PM
      40

      Originally Posted by IngPereira View Post
      How do you uncompress that ISO.BIN right?
      The names i used for the tables or areas... are a bit confusing (if anyone understand this better feel free to clarify them)
      But because i dont know exactly what they are... i found no better names

      All that i added to the page is from a iso.bin.edat decrypted from a retail game... i just removed the extension .edat to difference it from an encrypted one

      And well... in resume... this iso.bin is pointing to areas of another .iso file
      This areas obviously are "sectors of a disc"... and probably related with the TOC of the disc (table of contents)

      And for the decryption of each disc (or each disc header)... i think the key is the one i marked as "disc_key" (doesnt seems to be a checksum, and is the only one with 32 bytes)
      At the end of the file there is an area of 40 bytes a bit strange that i have no idea if is related with encryption

    40. IngPereira
      05-24-2012
      09:30 PM
      41

      Originally Posted by sandungas View Post
      The names i used for the tables or areas... are a bit confusing (if anyone understand this better feel free to clarify them)
      But because i dont know exactly what they are... i found no better names

      All that i added to the page is from a iso.bin.edat decrypted from a retail game... i just removed the extension .edat to difference it from an encrypted one

      And well... in resume... this iso.bin is pointing to areas of another .iso file
      This areas obviously are "sectors of a disc"... and probably related with the TOC of the disc (table of contents)

      And for the decryption of each disc (or each disc header)... i think the key is the one i marked as "disc_key" (doesnt seems to be a checksum, and is the only one with 32 bytes)
      At the end of the file there is an area of 40 bytes a bit strange that i have no idea if is related with encryption
      yeah you have decrypted the EDAT but according to the wiki and juan there is a compression algorithm, you decrypt the EDATA but if they are compressed then you can do nothing by just reading bytes of compressed data.