Homebrew Decrypting .sav files without a real 3DS

Gaming796

Gaming since 4
OP
Member
Joined
Aug 24, 2016
Messages
561
Trophies
0
Location
Your head
Website
gbatemp.net
XP
462
Country
United States
Okay so I happened to have bricked my 3DS (it won't even turn on, but will charge for some reason), but I had an SD card with all my games, saves, NAND backup, bootrom backups, OTP etc etc. So I was wondering if I had an encrypted save like 00000001.sav for a certain game, is there any tool on the PC that would decrypt it, using all the NAND backups, bootroms etc I have? I really want to play my games on Citra.
 

Gaming796

Gaming since 4
OP
Member
Joined
Aug 24, 2016
Messages
561
Trophies
0
Location
Your head
Website
gbatemp.net
XP
462
Country
United States

Gaming796

Gaming since 4
OP
Member
Joined
Aug 24, 2016
Messages
561
Trophies
0
Location
Your head
Website
gbatemp.net
XP
462
Country
United States
With your movable.sed (should be in your NAND backup or essentials.exefs -- you can use https://gbatemp.net/threads/extract...nd-backups-and-sd-contents-with-ninfs.499994/), you should be able to decrypt and unpack the save file using https://github.com/wwylele/3ds-save-tool
Okay I was able to extract moveable.bin from the NAND backup, but I have no clue on how to use 3ds-save-tool. Can someone explain it please because I didn't understand much in the github page.

EDIT: Ok I somewhat managed to figure out some stuff. However, the program outputs saying not enough secrets provided. I created a secrets.py from the template and replaced the placeholder text for "self.keyMoveable" to the data I obtained from bytes 0x110 to 0x11F in moveable.bin using HxD. However, I don't know what to replace the other text with. Any help is appreciateed
 
Last edited by Gaming796,

lilyuwuu

Well-Known Member
Newcomer
Joined
Sep 7, 2020
Messages
94
Trophies
0
XP
816
Country
Antarctica
key0x30X and key0x34X are at offsets 0xD9E0 and 0xD9F0 of boot9.bin. Not sure how to get/give keyConst, it tends to fall under piracy rules...
 
Last edited by lilyuwuu,

Gaming796

Gaming since 4
OP
Member
Joined
Aug 24, 2016
Messages
561
Trophies
0
Location
Your head
Website
gbatemp.net
XP
462
Country
United States
key0x30X and key0x34X are at offsets 0xD9E0 and 0xD9F0 of boot9.bin. Not sure how to get/give keyConst, it tends to fall under piracy rules...
Don't worry, I found that out on pastebin lol.

Edit: I have no idea but the program is still throwing an error saying "Not enough secrets provided"
 
Last edited by Gaming796,

Gaming796

Gaming since 4
OP
Member
Joined
Aug 24, 2016
Messages
561
Trophies
0
Location
Your head
Website
gbatemp.net
XP
462
Country
United States
Don't worry, I found that out on pastebin lol.

Edit: I have no idea but the program is still throwing an error saying "Not enough secrets provided"
Ok I just read the github page and looks like I was missing a dependency called cryptodome. I googled this to find out how to install it, and found the command to do so. However, when I enter "pip install pycryptodome" in the python command line, it just says:
File "<stdin>", line 1
pip install pycyrptodome
^
Syntax error: Invalid syntax

Ok fixed this installation issue but it throws an error saying can't find cryptodome

Oooooh nevermind boiii I got my save extracted (I also ran pip install pycryptodomex and it fixed all errors)
 
Last edited by Gaming796,

vagus02

Member
Newcomer
Joined
May 5, 2016
Messages
11
Trophies
0
Age
36
XP
79
Country
Brazil
Can someone help me pls to decrypt a .sav file for my kingdom hearts dream drop distance created by my old gateway cartridge? I look everywere and canot find a simply way do do it, try the 3ds-save-tool from this thread, but i find to complicate, the files doest even have a .exe. All i want is to decrypt my save to use in a app to coverter for my epic game, if someone can teach me a simply way to do it, from the very basics, i apreciate it.

(sorry for my bad english, i'm braziliam)
 

godreborn

Welcome to the Machine
Member
Joined
Oct 10, 2009
Messages
38,471
Trophies
3
XP
29,116
Country
United States
Can someone help me pls to decrypt a .sav file for my kingdom hearts dream drop distance created by my old gateway cartridge? I look everywere and canot find a simply way do do it, try the 3ds-save-tool from this thread, but i find to complicate, the files doest even have a .exe. All i want is to decrypt my save to use in a app to coverter for my epic game, if someone can teach me a simply way to do it, from the very basics, i apreciate it.

(sorry for my bad english, i'm braziliam)

decrypting a gateway save isn't that hard. you need jksm to do it iirc. @MattKimura wrote a tutorial on how to do it on here, and I wrote one on psx place in pinky's 3ds tutorials. they're both nearly identical, since we both use the same method.

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

here it is: https://gbatemp.net/threads/importing-gateway-saves-to-cia-games.425743/

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

they'll be decrypted in the process, I believe in the way you need or want it to be.
 
  • Like
Reactions: vagus02

vagus02

Member
Newcomer
Joined
May 5, 2016
Messages
11
Trophies
0
Age
36
XP
79
Country
Brazil
decrypting a gateway save isn't that hard. you need jksm to do it iirc. @MattKimura wrote a tutorial on how to do it on here, and I wrote one on psx place in pinky's 3ds tutorials. they're both nearly identical, since we both use the same method.

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

here it is: https://gbatemp.net/threads/importing-gateway-saves-to-cia-games.425743/

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

they'll be decrypted in the process, I believe in the way you need or want it to be.
Thansks for the reply. I try follow the steps on the guide, but i dont have my gateway cartridge anymore to pass step 6. Is there any other simple way do decrypt my save file? Thanks again!
 

Kwyjor

Well-Known Member
Member
Joined
May 23, 2018
Messages
4,323
Trophies
1
XP
4,450
Country
Canada

Site & Scene News

Popular threads in this forum

General chit-chat
Help Users
    Psionic Roshambo @ Psionic Roshambo: https://m.youtube.com/watch?v=lDRjqI-fBVI&pp=ygUPVml0Z2luIG1hZ2ljaWFu