Homebrew Batch CIA 3DS Decryptor - A simple batch file to decrypt CIA & 3DS

acrash

Active Member
Newcomer
Joined
Mar 18, 2020
Messages
32
Trophies
0
Age
44
XP
586
Country
United States
If this tool has problems for you, try the tool called "3DS + CIA Rom Script".
This tool gives matching hashes to the No-Intro database for .3DS files.

You can find it in this link:
https://anonfiles.com/Fb7fw8Xcob/3DS_CIA_Rom_Script_rar

You will need to install Python before running the tool: www.python.org

The link also has a Reference.xlsx file that has an explanation of file formats for different consoles and the file formats that the tool can be used with


Sorry Foxi4. I uploaded the tool on its own link
 
Last edited by acrash, , Reason: Copyrighted content

Foxi4

Endless Trash
Global Moderator
Joined
Sep 13, 2009
Messages
30,828
Trophies
3
Location
Gaming Grotto
XP
29,861
Country
Poland
If this tool has problems for you, try the tool called "3DS + CIA R*m Script".
This tool gives matching hashes to the No-Intro database for .3DS files.

You can find it in R*M Tools ---> Nintendo 3DS from this link:
*Snip*

You will need to install Python before running the tool: www.python.org

The link also has a Reference.xlsx file that explains the file formats that the tool can be used with
I've temporarily removed your link as it contains copyrighted content (BIOS files etc.), please remove any infringing content from the Google Drive before re-linking to it.
 

JuanHecate

Member
Newcomer
Joined
Jan 29, 2019
Messages
10
Trophies
0
Age
27
XP
196
Country
Mexico
Hello, I have a problem and I don't know if it's just me, when I try to decrypt my .cia the program doesn't throw anything at me, at the beginning it starts with .NHHC files followed by a .firstdecrypt, however when the program ends they all disappear, Do you know what could be given?

I am new to external console programs and modifying things related to .cias

Thank you for your attention :sad:
 
Last edited by JuanHecate,

acrash

Active Member
Newcomer
Joined
Mar 18, 2020
Messages
32
Trophies
0
Age
44
XP
586
Country
United States
Hello, I have a problem and I don't know if it's just me, when I try to decrypt my .cia the program doesn't throw anything at me, at the beginning it starts with .NHHC files followed by a .firstdecrypt, however when the program ends they all disappear, Do you know what could be given?

I am new to external console programs and modifying things related to .cias

Thank you for your attention :sad:

try the tool I linked to in my previous post
 
D

Deleted User

Guest
Everytime I try to decrypt the CIA file it'll tell me it's done but Citra says it's still encrypted and I need a real 3DS or something.
 

JacoPbass

New Member
Newbie
Joined
Sep 12, 2020
Messages
1
Trophies
0
Age
27
XP
48
Country
Iceland
I used it and works fine. The first times I got an setting error <missing an "-rsf" argument> or something similar. Renaming the file to get rid of unusual characters solved it.
 
  • Like
Reactions: MirorB_Sees_All

Sternhawk

New Member
Newbie
Joined
Dec 20, 2019
Messages
3
Trophies
0
Age
25
XP
55
Country
United States
I've trying to use this to decrypt a Rom and after running for a little bit it says it is done and doesn't produce a file

this is the Log File:


Tue 09/15/2020 22:19:12.71
Parsing CIA in file "PKY.cia":
Parsing NCCH 0
Product code: CTR-P-EK2A
KeyY: 1FD7D48EA28C87B44FBF458B75CBA63A
Title ID: 0004000000055E00
Format version: 2
ExHeader offset: 00000200
ExHeader counter: 0004000000055e000100000000000000
ExHeader size: 2048 bytes
ExeFS offset: 00002E00
ExeFS counter: 0004000000055e000200000000000000
ExeFS size: 3163136 bytes
RomFS offset: 00308000
RomFS counter: 0004000000055e000300000000000000
RomFS size: 1797873664 bytes
Traceback (most recent call last):
File "decrypt.py", line 430, in <module>
File "decrypt.py", line 252, in parseCIA
File "decrypt.py", line 332, in parseNCCH
File "decrypt.py", line 390, in dumpSection
IOError: [Errno 28] No space left on device
Failed to execute script decrypt
[MAKEROM ERROR] Content 0 is corrupt
 

MirorB_Sees_All

Member
Newcomer
Joined
Dec 24, 2019
Messages
17
Trophies
0
Age
33
XP
209
Country
United States
I used it and works fine. The first times I got an setting error <missing an "-rsf" argument> or something similar. Renaming the file to get rid of unusual characters solved it.

Ran into that error when trying to decrypt a game that had an "!" in the title. Removed that character, tried again, and it worked! Thank you. :)

It would be great if the error message said something like "Invalid characters - the following characters are not accepted: !, ...etc." Instead of an error that doesn't seem to point to anything. If there is a use for the -rsf argument in this context, it would be nice to have it documented and in the readme, along with any other helpful commands, arguments, troubleshooting stuff, common questions, etc.

Not trying to be harsh - I appreciate the tool! Just some ideas for improvement.
 
  • Like
Reactions: JacoPbass

TontonSerge

Member
Newcomer
Joined
Dec 12, 2020
Messages
5
Trophies
0
Age
22
XP
52
Country
France
hello, i've donwload some rom but i only have file that are .3ds files, does it work to play those rom on citra ?

Is there any procédure to follow while doing that ?
 

skylinekiller

Member
Newcomer
Joined
Jul 19, 2009
Messages
17
Trophies
0
XP
209
Country
United States
When I use it seesm to work good, but on some Encreytped .cia iget an output file of .cci Can this .cci be injected with FBI and does it work with citra???

When I use the tool 3DS + CIA Rom Script about half of my .cias received a warning of "This is an Update file... if it contains too many files, it may not work correctly... " but all converted are converted to .cia

so if I use the first tool it works, but end up with .cci files, if I use the second tool, there is no way of knowing if half of my conversions work... Any input?? Will .ccis work for FBI and Citra?
 

acrash

Active Member
Newcomer
Joined
Mar 18, 2020
Messages
32
Trophies
0
Age
44
XP
586
Country
United States
I believe .cci files are the same as .3ds files (two extensions same format). So, you can just rename one to the other.
I don't know about FBI, but l think Citra plays .cci files just like .3ds files. If FBI supports .3ds files, just rename the .cci files to .3ds and try them.
See the following link (this link is old. Citra supports .cia formats now):
https://community.citra-emu.org/t/3ds-vs-cci-rom-file-formats/191

----------------
with "batch cia 3ds decryptor" if you try to decrypt a .cia GAME file , it seems to just extract the .cci/.3ds file from it and decrypt that.
If you try to decrypt a DLC/UPDATE .cia file, it seems to keep the format as .cia
-----------------
With "3ds + cia rom script" it seems to decrypt ANY .cia to a .cia file.
It has the ability to do conversation between .3ds and .cia from its conversation menu.


With using "3ds + cia rom script" I've never had problems with any decrypted .cia DLC/UPDATE files even though it always gives me the warning.
(only used them with Citra)
 
Last edited by acrash,

dreeed

New Member
Newbie
Joined
Jan 23, 2021
Messages
1
Trophies
0
Age
22
XP
38
Country
Germany
Hi!

I'm absolutely new to the 3DS emulator world and just want to play Pokemon Ultra Moon. Anyways, when I attempt to use your tool, I get the following error message in the log:

Error loading Python DLL: C:\Users\GOMORIAppData\Local\Temp\mei\python27.dll (error code 126)
[SETTING ERROR] Argument "-rsf" is required


There is nothing else in the log. I have tried running as administrator, running on C:, using GitHub and download version etc but nothing helped yet.

Please help me on trying to fix this problem, I am so desperate to finally play Pokomon again =)

I use Windows 8.1 64bit if that does matter. If you find a solution, please don't explain it to me like I'd be a computer god, I have just basic programming knowledge, no more.

Thanks for any help in advance!
 

jlrruben

New Member
Newbie
Joined
Mar 10, 2021
Messages
1
Trophies
0
Age
33
XP
32
Country
United States
This is good but when checking the CRC32 of the file it doesn't match the one written in No-Intro's Database. I have the correct Encrypted file (matches with No-Intro) but after decrypting, the CRC32 doesn't match anymore

EDIT: Didn't read previous comments. Saw the solution and now the hashes match with No-Intro's database.
 
Last edited by jlrruben,

UltimateBagman

Member
Newcomer
Joined
Mar 7, 2021
Messages
5
Trophies
0
Age
27
XP
46
Country
Ghana
Im having the same issue, but same happens just whenever I open it through any means
can someone please help me with this

I think I found a fix for this. If you're getting the "Finished" message instantly, try renaming your game file into something simple (without any special symbols, even spaces), like "SMT4". It worked for me.

EDIT: still have no idea what to do with patch/DLC files since for me they're still in CIA format, how do I even use them if I'm using citra on switch via retroarch?
 
Last edited by UltimateBagman,
  • Like
Reactions: pistoldust

Site & Scene News

Popular threads in this forum

General chit-chat
Help Users
    Veho @ Veho: I have a number of geriatric relatives.