Homebrew Official [Download] Decrypt9 - Open Source Decryption Tools (WIP)

  • Thread starter Thread starter d0k3
  • Start date Start date
  • Views Views 935,370
  • Replies Replies 4,476
  • Likes Likes 71
It is not in the main release, but can be unlocked via a #define. It is not tested enough now, and the first round of tests by @key1340 didn't go well (corrupted files). You can unlock it yourself, if you #define EXPERIMENTAL in common.h. If you do, and you also test it, could you give me some feedback?
Tests went very well for me. Nothing unexpected.

NA old3ds 4.5 -> 9.4emu backup/restore good
NA old3ds 9.2 -> 10.2emu backup/restore good

Now on to new3ds. Well maybe in a while .. those are less replaceable :P
(one suggestion, filename should be emuNAND.bin for emunandtool compat and limiting sysnand backup confusion)
 
Last edited by zoogie,
  • Like
Reactions: d0k3
Tests went very well for me. Nothing unexpected.

NA old3ds 4.5 -> 9.4emu backup/restore good
NA old3ds 9.2 -> 10.2emu backup/restore good

Now on to new3ds. Well maybe in a while .. those are less replaceable :P
(one suggestion, filename should be emuNAND.bin for emunandtool compat and limiting sysnand backup confusion)
Thanks a ton! If more people would test (with positive results), this could go into the main release. For now I still don't trust these features completely.
 
Well, the CIA is possible. Of course it only works in rxtools DevMode.

Works flawlessly but we're forced to reboot anyway. Not too much of an advantage over the other launch methods.
Somewhat of a noob question, but how did you enable this? Can you release your source code changes?
 
Yeah, after some reading up on the issue... A .3DSX is the same thing as a stripped .ELF, which again is the base component of a .CIA / .3DS, correct?
yeah, we can use 3dsxdump to dump a code.bin from it.
I just modified 3dsxdump a bit so it tells me the exact values makerom needs in the exheader to rebuild the CXI then I manually patched an exheader file (yeah I could just make it patch the exheader file directly but I'm lazy...)

1ED2JrI.png
 
I did it! After hours of messing with trying to get the new Animal Crossing to work! I wish I would have selected the FW Spoof option earlier from 3DS Simple CIA Converter.

View attachment 26018

@d0k3 I was confused how the NCCH Decryptor worked since it kept giving me no errors. I was expecting some sort of output on my sd card but I figured it out by referencing other guides for decrypting and rebuilding 3ds roms. Thanks for the work! Now I have a cryptofixed Animal Crossing Happy Home Designer loading from CIA since Sky3ds template is still out of date!

View attachment 26017

I hate to do this on my first post with this account (lost my old gbatemp account), but is there any way you could guide me on how you managed to get the decrypt to run with N3DS and get AC running? Reason why I ask is because I want to set up a little guide for people who are new to the scene (or are coming back to it). I'm doing this from a Sky3Ds side of things as I see that a lot of tutorials tend to be very GateWay related, and there are a lot of people confused on how to get the most out of a N3DS with <9.2 sysnand and a sky3ds. Thanks in advance, and I hope this isn't too much to ask.
 
I hate to do this on my first post with this account (lost my old gbatemp account), but is there any way you could guide me on how you managed to get the decrypt to run with N3DS and get AC running? Reason why I ask is because I want to set up a little guide for people who are new to the scene (or are coming back to it). I'm doing this from a Sky3Ds side of things as I see that a lot of tutorials tend to be very GateWay related, and there are a lot of people confused on how to get the most out of a N3DS with <9.2 sysnand and a sky3ds. Thanks in advance, and I hope this isn't too much to ask.

The N3DS that I have has a hard mod that I was able to update to the newest firmware (10.1 at the time) to get the seeddb then I downgraded back to 9.0 to run decrypt9. I only used the sky3ds to boot up ninjhax to run decrypt9 and to get the custom firmware to install the .cia. Now there are plenty of seeddb out floating around that can allow for the new crypto games but they still need to be installed by .cia
 
The N3DS that I have has a hard mod that I was able to update to the newest firmware (10.1 at the time) to get the seeddb then I downgraded back to 9.0 to run decrypt9. I only used the sky3ds to boot up ninjhax to run decrypt9 and to get the custom firmware to install the .cia. Now there are plenty of seeddb out floating around that can allow for the new crypto games but they still need to be installed by .cia
Ah, I already got hold of a source of the seeddb, so I think I can avoid the steps for the hard mod (which I think would be too complicated for beginners anyways). So if I have the the seedbb, and the rom, I should be able to produce the xorpad to create the decrypted cia? I keep reading that I need a slot0x25KeyX.bin (which I'm aware of what it is) and ncchinfo.bin (which I'm trying to figure out if this is per game, or one generic one - also no idea how to get it).

Thanks again for the help!
 
Ah, I already got hold of a source of the seeddb, so I think I can avoid the steps for the hard mod (which I think would be too complicated for beginners anyways). So if I have the the seedbb, and the rom, I should be able to produce the xorpad to create the decrypted cia? I keep reading that I need a slot0x25KeyX.bin (which I'm aware of what it is) and ncchinfo.bin (which I'm trying to figure out if this is per game, or one generic one - also no idea how to get it).

Thanks again for the help!
Yeah there's a site with ALL the seeds available in the seeddb.bin so that's a non issue now which is cool. :)
And yeah if you have the seeddb and and the rom you're good to go with decrypting it.
the slot0XkeyX.bin, I'm not sure if really needed anymore with most people being on 9.x and i honestly forget if Decrypt9 actually NEEDS it in regards to that or not.
as for the ncchinfo.bin, that is per game (although you can do multiple games at once in one ncchinfo.bin).
And to get the ncchinfo.bin all you need is python installed and drag and drop your game/s onto ncchinfo_gen.py and it should produce the ncchinfo.bin.
Or if you'd rather not drag and drop for some reason, copy the script to where the game/s you want to generate ncchinfo.bin for and open cmd and type ncchinfo_gen.py game.3ds or ncchinfo_gen.py *.3ds :)
 
Yeah there's a site with ALL the seeds available in the seeddb.bin so that's a non issue now which is cool. :)
And yeah if you have the seeddb and and the rom you're good to go with decrypting it.
the slot0XkeyX.bin, I'm not sure if really needed anymore with most people being on 9.x and i honestly forget if Decrypt9 actually NEEDS it in regards to that or not.
as for the ncchinfo.bin, that is per game (although you can do multiple games at once in one ncchinfo.bin).
And to get the ncchinfo.bin all you need is python installed and drag and drop your game/s onto ncchinfo_gen.py and it should produce the ncchinfo.bin.
Or if you'd rather not drag and drop for some reason, copy the script to where the game/s you want to generate ncchinfo.bin for and open cmd and type ncchinfo_gen.py game.3ds or ncchinfo_gen.py *.3ds :)

Oh okay, that seems to make more sense. Because decrypt wasn't recognizing the rom. So I used the ncchinfo.bin to decrypt and get the xopart, correct?
 
Oh okay, that seems to make more sense. Because decrypt wasn't recognizing the rom. So I used the ncchinfo.bin to decrypt and get the xopart, correct?
Yeah you can do it that way, or decrypt it directly on the 3ds without the need for xorpads depending on what you want to do with it.
 
Yeah you can do it that way, or decrypt it directly on the 3ds without the need for xorpads depending on what you want to do with it.
attempting to decrypt AC Happy Home Designer since Sky3DS won't run it, and that way it should work on Pasta CFW or Reinand. And seeing as the decrypted version of this cia is nto readily available, I figured it would be better if I could do it myself and that way add this into the guide I want to write later on.
 
attempting to decrypt AC Happy Home Designer since Sky3DS won't run it, and that way it should work on Pasta CFW or Reinand. And seeing as the decrypted version of this cia is nto readily available, I figured it would be better if I could do it myself and that way add this into the guide I want to write later on.
It is already available by the way... on that iso site we shall not name. :)
I have it running on reinand, so it works. too bad nintendo threw a spanner in the works for sky3ds. lol (i own one too).

But in your case anyway if you want to continue rather downloading it then the xorpad method is the route to go i think as it needs to be crypto-fixed.
There's a tutorial on "that site" for crypto-fixing games too.
 
It is already available by the way... on that iso site we shall not name. :)
I have it running on reinand, so it works. too bad nintendo threw a spanner in the works for sky3ds. lol (i own one too).

But in your case anyway if you want to continue rather downloading it then the xorpad method is the route to go i think as it needs to be crypto-fixed.
There's a tutorial on "that site" for crypto-fixing games too.
I will see if I can find it. Couldn't find either the cryptofixed cia or the tutorial on "that site", but I'll try digging a little more. Thanks for the help, I'm installing the cia I just generated and am hoping it will work out.
 
I will see if I can find it. Couldn't find either the cryptofixed cia or the tutorial on "that site", but I'll try digging a little more. Thanks for the help, I'm installing the cia I just generated and am hoping it will work out.
If you've got a encrypted CIA (f.e. from CDN) you can simply cryptofix it via the "CIA Decryptor (deep)" feature. You need the correct seed, of course. Anyways, let us know how it works for you!

Everyone, there's a new release. This is what's new:
  • CakesROP NDS file added to release
  • Much faster CIA decryption (shallow and deep) due to SHA-256 calculation via registers
  • SD card can be unmounted via SELECT
  • SD padgen feature now auto-generates the SDinfo.bin in memory if it does not exist on the SD card.
For the SD card unmount feature, make sure you actually put the SD card back in before you return to the menu, otherwise you will experience a crash. Of course, everything has to be tested, but I'm especially interested in how the CakesROP NDS and the new SD padgen functionality work for you.


Here are some features that are still on my list:
  • Health & Safety app dumper
  • Health & Safety app injector (for FBI, f.e., but there's no solution to create the required files on N3DS now)
  • SD Decryptor - meaning you copy the files from "/Nintendo 3DS/<ID0>/<ID1>" to the decrypt folder, and they get decrypted from there
Would you use any of the above? Maybe some other ideas? Also, do you think the shallow CIA Decryptor makes sense?
 
Do you think would be possible to make a simple cryptofixing feature? For example now that we have access to the seed file containing all the titles and a .3ds rom, dunno exactly how should it work
 
Do you think would be possible to make a simple cryptofixing feature? For example now that we have access to the seed file containing all the titles and a .3ds rom, dunno exactly how should it work
We already have this, it's called "CIA Decryptor (deep)", and I even mentioned it in the post above. You need a installable CIA file (f.e. from CDN), put it into the "/D9Decrypt" folder, let the CIA decryptor to it's work and get, as a result, a installable, fully cryptofixed CIA file. Of course, as you said, you need the seed if it is seed encrypted.

A 3DS to CIA converter is not possible atm (if that's what you meant), but Rikus Simple CIA Converter does this much better than Decrypt9 could ever do anyways.
 
Last edited by d0k3,
So for example, Triforce heroes or the new animal crossing, they need to be cryptofixed, right? So we just need to put the cia and the seed into the /D9Decrypt folder (is that the path even for shadowtrance release? I like the ui) and that's all? Will the program generate a new file or will be overwritten the old one? Thanks
 

Site & Scene News

Popular threads in this forum