- Joined
- Oct 7, 2007
- Messages
- 4,685
- Solutions
- 3
- Reaction score
- 4,936
- Trophies
- 4
- Age
- 38
- Location
- Levelland, Texas
- Website
- www.mariopc.co.nr
- XP
- 8,060
- Country

Ok. I deep decrypted the original CIA and saved that. Then I encrypted it and decrypted it using deep option. Saved that with _deepdecrypted ammended to name. Then encrypted it again, then deep decrypted it a second time. Saved that file with _deepdecryptedpass2.
The two deep decrypted files MD5 match. However the original CIA which I decrypted doesn't have a matching MD5 with the two other CIAs that were passed through multiple times.
The changed offsets appear to be the same in regards to the original file that I decrypted the first time. Perhaps because this CIA was packed in a way that would just result in it always being different from the new files after passing through Decrypt9.
But the CIAs that went through the deep decryptor and CIA encryptor are the same, so the result is consistent.
I haven't had a chance to actually try installing the CIA. The app in question is BossLotcheckTool. I'm going to unpack the CXI and edit the exheader so it installs to NAND like I've been able to do with some of the other devapps. Then I'll repack the CXI like I normally do. Now this time instead of encrypting the CXI before building the CIA, I will immediately build the CIA, then use Decrypt9WIP to encrypt the CIA using the NCCH option.
Once I get around to this I'll report if this made any difference. BossLotcheckTool was one of the apps that was giving me trouble and not wanting to work from NAND so it's a good start to see if it made any difference packing the CIA with the unencrypted CXI first.
EDIT:
Tested this with my new attempt with the encrypt CIA options available. No change. BossLotCheckTool still crashes immediately after starting it. (boot logo never has a chance to show). I made the correct changes to the exheader. (set content type bit to 02 to make it install to NAND and set offset at 0x0d to 01 to disable the run from SD flag. Code was still compressed so used 01 in it's place)
This one may need a different method of CXI rebuild process so the new CIA encryption stuff made no difference. I may switch over to 3dstool to see if that does something different in terms of rebuilding the CXI. Wish I could just edit the exheader while it's still in the CXI. But the CXI header has it's own program id and partition id in the header and if one or both of those aren't updated, the resulting CIA will still want to install to SD. I tried ediing one or both of those lines, but the resulting CIA will crash at 100% during install. (DevMenu crashes forcing me to reboot) This crash isn't related at all to your CIA encrypted stuff. That's just things I had attempted with the CXI long before the CIA encryption stuff was used.
I'm guessing I don't know enough about the CXI header to do it correctly. So rebuilding CXI seems the only method for me right now. I'll just find alternate means of building the CXI. Before I used 3DS Builder No crypt version to build the CXI. So instead I'll move over to giving 3dstool a try.
Since it appears to behave identical to my previous attempt, it looks like the CIA encryption options don't make things any worse. So they appear to work and produce a valid CIA that installs correctly. It would be safe to assume that for most other normal circumstances that it would produce valid CIAs for games and such.
It's up to you if you want to keep these in the menu. It's fine if they end up not staying. The experienced users can add them back to the menu themselves if they need CIA encryption for some special reason.
The two deep decrypted files MD5 match. However the original CIA which I decrypted doesn't have a matching MD5 with the two other CIAs that were passed through multiple times.
The changed offsets appear to be the same in regards to the original file that I decrypted the first time. Perhaps because this CIA was packed in a way that would just result in it always being different from the new files after passing through Decrypt9.
But the CIAs that went through the deep decryptor and CIA encryptor are the same, so the result is consistent.
I haven't had a chance to actually try installing the CIA. The app in question is BossLotcheckTool. I'm going to unpack the CXI and edit the exheader so it installs to NAND like I've been able to do with some of the other devapps. Then I'll repack the CXI like I normally do. Now this time instead of encrypting the CXI before building the CIA, I will immediately build the CIA, then use Decrypt9WIP to encrypt the CIA using the NCCH option.
Once I get around to this I'll report if this made any difference. BossLotcheckTool was one of the apps that was giving me trouble and not wanting to work from NAND so it's a good start to see if it made any difference packing the CIA with the unencrypted CXI first.
EDIT:
Tested this with my new attempt with the encrypt CIA options available. No change. BossLotCheckTool still crashes immediately after starting it. (boot logo never has a chance to show). I made the correct changes to the exheader. (set content type bit to 02 to make it install to NAND and set offset at 0x0d to 01 to disable the run from SD flag. Code was still compressed so used 01 in it's place)
This one may need a different method of CXI rebuild process so the new CIA encryption stuff made no difference. I may switch over to 3dstool to see if that does something different in terms of rebuilding the CXI. Wish I could just edit the exheader while it's still in the CXI. But the CXI header has it's own program id and partition id in the header and if one or both of those aren't updated, the resulting CIA will still want to install to SD. I tried ediing one or both of those lines, but the resulting CIA will crash at 100% during install. (DevMenu crashes forcing me to reboot) This crash isn't related at all to your CIA encrypted stuff. That's just things I had attempted with the CXI long before the CIA encryption stuff was used.
I'm guessing I don't know enough about the CXI header to do it correctly. So rebuilding CXI seems the only method for me right now. I'll just find alternate means of building the CXI. Before I used 3DS Builder No crypt version to build the CXI. So instead I'll move over to giving 3dstool a try.
Since it appears to behave identical to my previous attempt, it looks like the CIA encryption options don't make things any worse. So they appear to work and produce a valid CIA that installs correctly. It would be safe to assume that for most other normal circumstances that it would produce valid CIAs for games and such.
It's up to you if you want to keep these in the menu. It's fine if they end up not staying. The experienced users can add them back to the menu themselves if they need CIA encryption for some special reason.
Last edited by Apache Thunder,









