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

  • Thread starter Thread starter d0k3
  • Start date Start date
  • Views Views 935,297
  • Replies Replies 4,476
  • Likes Likes 71
@d0k3 looking into ninjhax2 port of this on 9.2?
Well, you're asking the wrong person. I'm not coding any entry points. Once Brahma II is reliable enough (sorry even 80% success rate doesn't seem enough for something as critical as Decrypt9), it will be a snap adding it as an additional build goal, though.
Is that it? That's all you did, and it worked? Or what exactly did you do to convert it?
In short: no. You still have to convert the decrypted rom to CIA. I suggest you use Riku's converter.
 
Well, you're asking the wrong person. I'm not coding any entry points. Once Brahma II is reliable enough (sorry even 80% success rate doesn't seem enough for something as critical as Decrypt9), it will be a snap adding it as an additional build goal, though.

In short: no. You still have to convert the decrypted rom to CIA. I suggest you use Riku's converter.

So do I just do all this:
You need to get your seeddb with this https://gbatemp.net/threads/download-seedconv-seeddb-bin-generator-for-use-with-decrypt9.392856/

And make your xorpads with this https://gbatemp.net/threads/download-decrypt9-wip-3dsx-launcher-dat.388831/

Then convert the 3ds to a cia and it will be cryptofixed.

And then convert the .3ds using Riku's 3DS Simple Converter, right? Am I missing any steps?
Oh, and for the seeddb.bin, since I want this to run correctly using my New 3DS, will it be a problem if I pull the seeddb.bin from an old 3DS? New 3DSes can't run on 9.6, and I don't have any hardware mods.
 
Last edited by ubergeek77,
... And then convert the .3ds using Riku's 3DS Simple Converter, right? Am I missing any steps?
Oh, and for the seeddb.bin, since I want this to run correctly using my New 3DS, will it be a problem if I pull the seeddb.bin from an old 3DS? New 3DSes can't run on 9.6, and I don't have any hardware mods.
No, that's it. Note that you can only extract the seed from a O3DS that has your game already installed.
 
Well, you're asking the wrong person. I'm not coding any entry points. Once Brahma II is reliable enough (sorry even 80% success rate doesn't seem enough for something as critical as Decrypt9), it will be a snap adding it as an additional build goal, though.

In short: no. You still have to convert the decrypted rom to CIA. I suggest you use Riku's converter.
thanks d0k3! yeahhh.... i was worried about that. But if you need any help leemmeeee knowwww
 
Here's a new release for everyone to test.

New in this release:
  • Batch CIA Decryptor is now included with the NCCH Decryptor
  • Switched to experimental Brahma II Loader, enabling us to run this on Ninjhax 2.x (must be <= FW 9.2)
  • Completely rewritten menu system, now based on arrow keys.
  • App name changed to "Decrypt9WIP"
  • New icon (sort of)
The batch CIA decryptor will decrypt all CIAs you put into \D9decrypt\. Decryption is proper, meaning you can still install these decrypted CIAs. The last two changes will help you run this alongside Archshifts original build of Decrypt9.

@OctopusRift might be happy to hear that Ninjhax / *hax 2.x support - thanks to Brahma II by @delebile - is already included. Needs testing, especially on those newer haxs, though. I think on Ninjhax 1.x it is a little slower to start than the old Brahma I loader, but I might be wrong. I haven't noticed any stability issues.

As for the new batch CIA decryptor:
  • It is slow, mainly due to the verification routines being awfully slow. I could leave verification out, cutting the time requirement by about 60%, but also making it less safe (with verification you are 100% sure everything went right).
  • As of now, it only processes the CIA internal decryption, meaning that the included contents can still be NCCH encrypted. Processing this as well and having proper CIAs as result will double the current time requirement.
  • I could also further change this to be a CIA decryptor & unpacker, meaning that it would actually dump the CIAs decrypted contents (NCCH & SRL files). The decrypted contents could then be further decrypted using the NCCH decryptor.
Another idea that I had is decrypting titlekeys from CIAs. Doing this will be pretty fast and it would enable you to download CIAs from CDN using the included script or to do the decryption in CTRtool. Would you use something like that? You see, I'm not entirely sure where to go with the CIA decryptor. Depends on how you guys want to use it. Let me know what you think!

Also, let me know how you like the new menu! The actual menu structure hasn't changed yet, but it will with the new possibilities this gives me.
 
Last edited by d0k3,
Man I'm in no way going to be able to keep up with all these changes lol
I just had a look a little while ago tonight and honestly have no idea what point i should be updating from with all the changes in the past few weeks. argh!
Will have to test new stuff out when i get a chance though :)
 
  • Like
Reactions: Madridi
Man I'm in no way going to be able to keep up with all these changes lol
I just had a look a little while ago tonight and honestly have no idea what point i should be updating from with all the changes in the past few weeks. argh!
Will have to test new stuff out when i get a chance though :)
Don't worry, it's not half as bad as it looks like. Your menu routines need some small changes to support the new EmuNAND code, which is the only absolute required change. Other than that, it's take over my code, replace draw.h/draw.c/menu.h/menu.c with your versions, maybe reenable work dir and that's it. My new code has been designed with adaptible menu interfaces in mind :). I will also help you with a pull request or two. I do suggest you make a new fork from my code though, as especially the submodules will be much more difficult to reconstruct manually then just taking it over. And I'll advise you wait for a bit more. I just made more room in the menu, and I'll be sure to use it ;).

What you need to do is think about how the new menu could look like. You could build upon the current design, or think about something new. Your current menu code allows a basically unlimited number of submenus, so there would be room enough.

Testing the new stuff is highly appreciated btw. For CIA description, luckily, the verification comes in handy here - if that says everything is okay, there is basically no chance it is not. Output should still be tested, though. If any CIA can not be correctly decrypted, I want to hear about it. I also want to hear your ideas about how to go on with the CIA decryptor... And Ninjhax 2.x support has to be tested.
 
  • Like
Reactions: Madridi
Here's a new release for everyone to test.

New in this release:
  • Batch CIA Decryptor is now included with the NCCH Decryptor
  • Switched to experimental Brahma II Loader, enabling us to run this on Ninjhax 2.x (must be <= FW 9.2)
  • Completely rewritten menu system, now based on arrow keys.
  • App name changed to "Decrypt9WIP"
  • New icon (sort of)
The batch CIA decryptor will decrypt all CIAs you put into \D9decrypt\. Decryption is proper, meaning you can still install these decrypted CIAs. The last two changes will help you run this alongside Archshifts original build of Decrypt9.

@OctopusRift might be happy to hear that Ninjhax / *hax 2.x support - thanks to Brahma II by @delebile - is already included. Needs testing, especially on those newer haxs, though. I think on Ninjhax 1.x it is a little slower to start than the old Brahma I loader, but I might be wrong. I haven't noticed any stability issues.

As for the new batch CIA decryptor:
  • It is slow, mainly due to the verification routines being awfully slow. I could leave verification out, cutting the time requirement by about 60%, but also making it less safe (with verification you are 100% sure everything went right).
  • As of now, it only processes the CIA internal decryption, meaning that the included contents can still be NCCH encrypted. Processing this as well and having proper CIAs as result will double the current time requirement.
  • I could also further change this to be a CIA decryptor & unpacker, meaning that it would actually dump the CIAs decrypted contents (NCCH & SRL files). The decrypted contents could then be further decrypted using the NCCH decryptor.
Another idea that I had is decrypting titlekeys from CIAs. Doing this will be pretty fast and it would enable you to download CIAs from CDN using the included script or to do the decryption in CTRtool. Would you use something like that? You see, I'm not entirely sure where to go with the CIA decryptor. Depends on how you guys want to use it. Let me know what you think!

Also, let me know how you like the new menu! The actual menu structure hasn't changed yet, but it will with the new possibilities this gives me.
Thanks @d0k3 !!!!
 
Can I ask why the name is Decrypt9, instead something like Decrypt3 (3 for 3ds) xD ?
Why 9?
 
Decrypt9 runs on the arm9 processor which allows all its cool stuff to happen.

Oh, ok, thanks.
I thought to something like 9 for Firmware 9.X :')

--------------------- MERGED ---------------------------

Do you think a .cia (or at least a .3ds) can be possible for a use in EmuNand?
 
It has been asked before and I've answered before and I'll say it again... No.

Anyway, there's no need for it to run IN emunand...

Oh sorry...
But there is a need, because I need to sell my sky3DS, and my sky3DS is my only way to run Decrypt9 (via Sky3DS+CubicNinja in rom)
 
Oh sorry...
But there is a need, because I need to sell my sky3DS, and my sky3DS is my only way to run Decrypt9 (via Sky3DS+CubicNinja in rom)
Well there IS a few other options now to run homebrew menu without cubic ninja.... So sell your sky3ds if you must and use another method to run homebrew menu :)
 
Well there IS a few other options now to run homebrew menu without cubic ninja.... So sell your sky3ds if you must and use another method to run homebrew menu :)

I know only ssb, oot, cubic ninja,youtube, and iron fall, there is other way?
 
Here's a new release for everyone to test.

New in this release:
  • Batch CIA Decryptor is now included with the NCCH Decryptor
  • Switched to experimental Brahma II Loader, enabling us to run this on Ninjhax 2.x (must be <= FW 9.2)
  • Completely rewritten menu system, now based on arrow keys.
  • App name changed to "Decrypt9WIP"
  • New icon (sort of)
The batch CIA decryptor will decrypt all CIAs you put into \D9decrypt\. Decryption is proper, meaning you can still install these decrypted CIAs. The last two changes will help you run this alongside Archshifts original build of Decrypt9.

@OctopusRift might be happy to hear that Ninjhax / *hax 2.x support - thanks to Brahma II by @delebile - is already included. Needs testing, especially on those newer haxs, though. I think on Ninjhax 1.x it is a little slower to start than the old Brahma I loader, but I might be wrong. I haven't noticed any stability issues.

As for the new batch CIA decryptor:
  • It is slow, mainly due to the verification routines being awfully slow. I could leave verification out, cutting the time requirement by about 60%, but also making it less safe (with verification you are 100% sure everything went right).
  • As of now, it only processes the CIA internal decryption, meaning that the included contents can still be NCCH encrypted. Processing this as well and having proper CIAs as result will double the current time requirement.
  • I could also further change this to be a CIA decryptor & unpacker, meaning that it would actually dump the CIAs decrypted contents (NCCH & SRL files). The decrypted contents could then be further decrypted using the NCCH decryptor.
Another idea that I had is decrypting titlekeys from CIAs. Doing this will be pretty fast and it would enable you to download CIAs from CDN using the included script or to do the decryption in CTRtool. Would you use something like that? You see, I'm not entirely sure where to go with the CIA decryptor. Depends on how you guys want to use it. Let me know what you think!

Also, let me know how you like the new menu! The actual menu structure hasn't changed yet, but it will with the new possibilities this gives me.

This works in Ninjhax 2.0!! (9.2.0-20E) too works with ThemeHax (I have confirmed it).
 
  • Like
Reactions: d0k3

Thanks for this, this puts one more nail in the coffin for MSET downgrading on the New 3DS (non-8.10J). :P

Edit: Is it possible to use decrypt9 to re-encrypt things it's decrypted, in-place (like the Titles -> NCCH Decryptor option)? Would be handy for small NCCH files like updates. I'm trying to re-encrypt a game update NCCH file, but I don't have the xorpads. d0k3's decrypt9's ncchinfo_gen.py generates an ncchinfo.bin that just gives me a "too few/many entries" error, so I can't get the xorpads. I just used the title decryption option, but I have no way of re-encrypting it now..

Edit 2: Nevermind, I got it, I grabbed the ncchinfo_gen.py script from archshift's repo and it worked with my update NCCH.
 
Last edited by daxtsu,
Thanks for this, this puts one more nail in the coffin for MSET downgrading on the New 3DS (non-8.10J). :P

Edit: Is it possible to use decrypt9 to re-encrypt things it's decrypted, in-place (like the Titles -> NCCH Decryptor option)? Would be handy for small NCCH files like updates. I'm trying to re-encrypt a game update NCCH file, but I don't have the xorpads. d0k3's decrypt9's ncchinfo_gen.py generates an ncchinfo.bin that just gives me a "too few/many entries" error, so I can't get the xorpads. I just used the title decryption option, but I have no way of re-encrypting it now..

Edit 2: Nevermind, I got it, I grabbed the ncchinfo_gen.py script from archshift's repo and it worked with my update NCCH.
Wait, my ncchinfo_gen.py is exactly identical with Archshifts one. Could you send me the the different ncchinfo.bin files? As for reencrypting... I wonder why you would want to do that with the NCCH Decryptor feature (formerly: Title Decryptor). If you can explain, I'll consider it, but... That feature also properly modifies the header (the xorpad option doesn't do that), meaning that besides the signatures, you will get a proper NCCH/NCSD/3DS file, just without encryption. As for the signatures - if you change anything (which I assume you do), they won't be proper anymore anyways.


Also, @everyone:
  1. I'm considering to add an automatic nightly build feature. Upside for you: No need to compile yourself or wait until I do a release. I'd need an FTP server, though, preferably a free one. Around 50MB of space should be enough, more would be better. Any ideas?
  2. Has anyone tested the new CIA decryptor? Any opinions?
 

Site & Scene News

Popular threads in this forum