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

  • Thread starter Thread starter d0k3
  • Start date Start date
  • Views Views 934,247
  • Replies Replies 4,476
  • Likes Likes 71
  • Vastly improve the SD decryptor feature - the way this works now, you have to copy the files to decrypt to a certain folder, and also keep the correct folder strcuture. This is a feat not even easily accomplished with CTRXplorer. The way it should work is, let the user select what to decrypt, then copy that automagically to the work folder and decrypt it from there. Same for the SD xorpad generator.
I would LOVE this. ^^
  • Add a NDS .tad decryptor feature (or NDS SD decryptor) (unsure) - as requested by @zoogie . Problem here is: the DSiBrew article doesn't provide enough information to actually decrypt it, and I don't have data to test on (the test data must be tested on the same 3DS they cam from). If at least test data was available, decryption could be tested with a handful of different configurations until the correct one is found (unsure if that is doable, too).
Maybe supplementing the dsibrew doc with http://www.3dbrew.org/wiki/DSiWare_Exports will help some.
"each section is encrypted with AES-CBC" -hopefully that's enough, lol.
You should only need the movable sed for the initial decryption, then hopefully dsi_srl_extractor could do the rest.
I can help you test. Just PM me as always.
 
  • Like
Reactions: d0k3
Maybe supplementing the dsibrew doc with http://www.3dbrew.org/wiki/DSiWare_Exports will help some.
"each section is encrypted with AES-CBC" -hopefully that's enough, lol.
You should only need the movable sed for the initial decryption, then hopefully dsi_srl_extractor could do the rest.
I can help you test. Just PM me as always.
Well, that should already be handled by the Decrypt9 SD decryptor. It should be the same as for the other SD stuff, and also, only the first layer of encryption. This (the assumed second layer of encryption) is where it gets difficult: http://dsibrew.org/wiki/Tad

Or maybe I just get that wrong... What do you get if you use the SD decryptor to handle the Nintendo DSiWare folder? Even after the initial decryption, some of it is still encrypted, correct?
 
Well, that should already be handled by the Decrypt9 SD decryptor. It should be the same as for the other SD stuff, and also, only the first layer of encryption. This (the assumed second layer of encryption) is where it gets difficult: http://dsibrew.org/wiki/Tad

Or maybe I just get that wrong... What do you get if you use the SD decryptor to handle the Nintendo DSiWare folder? Even after the initial decryption, some of it is still encrypted, correct?
I believe 3ds games use a different crypto type (and different keyslots) and, according to 3dbrew, the dsiware is decrypted by section rather than the length of the file.

What I'm talking about here is just the initial per-console encryption layer.
 
Last edited by zoogie,
I believe 3ds games use a different crypto type (and different keyslots) and, according to 3dbrew, the dsiware is decrypted by section rather than the length of the file.

What I'm talking about here is just the initial per-console encryption layer.
Okay, after reading up on this.... the normal SD data (that should include extdata, titles, etc...) is encrypted with AES-CTR, while the DSiWare data is encrypted using AES_CBC. AES_CBC is already implemented in Decrypt9 (it is also used for CIA encryption), so no problem. Maybe we also have to set the IV (initialization vector) anew for each section (not 100% sure). Not a problem either. Now, the remaining problem is... What keyslot to use? It is absolutely impossible to try each and every combination, and as it is now I have to assume it is the same as for the remainder SD data (0x34).

I'm sure you already tried it... if you use the SD decryptor for DSiWare data - what do you get?

EDIT: Okay, tried it myself, and I get garbage data, of course. Hoping that the keyslot stays the same, I'll try something soon. And @zoogie will be my guinea pig :). No need to do this via PM, you need to use your own data anyways.
 
Last edited by d0k3,
Already fixed that, take a look at my Github. By the way, the screenshot feature proves useful again! :)
That did the trick! And yes the screenshot function is handy indeed. :)

Any idea how many pixels one letter is in the DrawStringF ? Just trying something with those man menu strings (sd space, game/work dirs etc)...
 
Just for be sure :3

For what purpose are used the Decrypt9WIP.bin and Decrypt9WIP.dat?
For the ROP, do we need to have just your launcher.dat and the .nds, right?
Decrypt9WIP.bin is for running it from Brahma (or a bootmanger i guess) by itself.
Decrypt9WIP.dat is for MSET (and also browser on old 3ds)
Launcher.dat is only for spider on old 3ds (if i remember right, been a while)..

So for MSET you just need Decrypt9WIP.dat and the .nds.
 
That did the trick! And yes the screenshot function is handy indeed. :)

Any idea how many pixels one letter is in the DrawStringF ? Just trying something with those man menu strings (sd space, game/work dirs etc)...
The width is 8 pixels, and the height should be the same.

Only need cryptofix funtion and then it will be perfect XD
The CIA deep decryptor already does that. If you meant the full conversion process (encrypted) 3DS -> (cryptofixed) CIA, that's not possible, at least not as good as Riku's tool does it, so there's not really a reason to add it in. If you meant GW compatibility, there is also a special option for that in there, and if you need it for .3DS GW compatibility, you need to decrypt, then reencrypt the .3DS file.
 
  • Like
Reactions: Ninoh-FOX
The width is 8 pixels, and the height should be the same.
Good to know. :)

I think positioning looks ok... (top screen strings)

VEHaMj8.png
 
looks really nice! How long do you think until the new release is ready?
Maybe in the next few days depending on how much i mess around/get distracted by other stuff. haha
Still got the UI version of EmuNAND9 to do too (because i want to and d0k3 said i probably would haha)... some ppl don't seem to like the purple of D9 for it though. :(
Throw ideas at me people!!!!!
 
Maybe in the next few days depending on how much i mess around/get distracted by other stuff. haha
Still got the UI version of EmuNAND9 to do too (because i want to and d0k3 said i probably would haha)... some ppl don't seem to like the purple of D9 for it though. :(
Throw ideas at me people!!!!!
I liked the blue you proposed, I think it was in that thread... I'll also teach you how to get a similar word effect to the D9 banner with ImageMagick if you like (its pretty simple)
 
I liked the blue you proposed, I think it was in that thread...
Yeah the blue one looks ok, the pin striping is too dark though and looks terrible with text over it imo so that'll need to be changed.
I'll also teach you how to get a similar word effect to the D9 banner with ImageMagick if you like (its pretty simple)
Yeah sure, sounds good. :)
 

Site & Scene News

Popular threads in this forum