3DS Decryption Key Generator

Discussion in '3DS - ROM Hacking, Translations and Utilities' started by loco365, Aug 27, 2014.

  1. quantumboy

    quantumboy Casual Hacker, Avid Dreamer

    Member
    4
    Jun 26, 2013
    United States
    San Francisco, CA
    Can this key be used to decrypt and re-encrypt pokemon saves(that were saved on a 4.5 with emunand) or actual saves from real carts (dumped with power saves)
     
  2. idunoe

    idunoe Advanced Member

    Newcomer
    1
    Aug 23, 2014
    so I can use this to decrypt ROMS with ctrtool?
     
  3. Abcdfv

    Abcdfv What comes around goes around.

    Member
    6
    Dec 24, 2013
    United States
    Seems that way.
     
  4. idunoe

    idunoe Advanced Member

    Newcomer
    1
    Aug 23, 2014
    cool i'll give it a shot now!

    edit: Team Fail your program doesn't work
    Warning: Spoilers inside!
     
  5. Abcdfv

    Abcdfv What comes around goes around.

    Member
    6
    Dec 24, 2013
    United States
    I also have no idea what I'm talking about but I think they still need to run through the aes core.
     
  6. idunoe

    idunoe Advanced Member

    Newcomer
    1
    Aug 23, 2014
    wait? if it's the key, why does it need to go through the aes core?
     
  7. loco365
    OP

    loco365 GBAtemp Guru

    Member
    11
    Sep 1, 2010
    The keys need to be put in the aes core, and it spits out an xorpad, which, from there, when xored on your romfs or encrypted files, decrypts them into the readable formats.

    Basically

    1. You get your keys.
    2. Put them into the aes core, and get your xorpad. <- This is the only step that hasn't been completed. However, all the files to achieve this are public.
    3. xor the file you want to decrypt.
    4. ???
    5. Profit!
     
    Celice and zecoxao like this.
  8. idunoe

    idunoe Advanced Member

    Newcomer
    1
    Aug 23, 2014
    so I just checked the source code, this isn't a key generator, this is a keyY generator. the CTR isn't a key, its just "CTR" or "counter". you stuffed up the endianness for the outputted "keys"
     
    zecoxao likes this.
  9. loco365
    OP

    loco365 GBAtemp Guru

    Member
    11
    Sep 1, 2010
    That'd be my mistake (Looks like I'll have to update this), but yeah. You do use the KeyY, but there's a second key that you need to generate the xorpad. This just makes it easier to work with.
     
  10. atenzor

    atenzor Advanced Member

    Newcomer
    2
    Mar 14, 2010
    Canada
    OK so I have 3ds explorer and one version which is a mod of 3ds explorer (but to me looks exactly the same, but whatever), I also have the ctr toolkit (with extdata_tool, etc), rom_tool, your 3ds key decrypter, a copy of super mario 3d land rom (3ds format), and so my question is how do I proceed from here to extract anything from the mario rom? any tutorials? thanks guys!

    p.s.: some people mention ctrtool, but is that rom_tool or something else? i saw a github of ctrtool but is not compiled and im not very good with compile stuff, can anyone upload an exe for me of latest version? thanks!
     
  11. Relys

    Relys ^(Software | Hardware) Exploit? Development.$

    Member
    7
    Jan 5, 2007
    United States
    We have our own tools to calculate initial ctr along with code to generate xor pad on 3DS. We're polishing them up for release. Expect lamers from #3dsdev rushing to release there's even though they had no plans to before our team got together and started working on this two days ago.
     
  12. zecoxao

    zecoxao GBAtemp Fan

    Member
    7
    Dec 25, 2013
  13. atenzor

    atenzor Advanced Member

    Newcomer
    2
    Mar 14, 2010
    Canada
  14. loco365
    OP

    loco365 GBAtemp Guru

    Member
    11
    Sep 1, 2010
    I'm just taking public information and putting it to use. Because I am bored.
     
    cearp, Celice and zecoxao like this.
  15. SonyUSA

    SonyUSA We're all mad here

    pip Contributor
    13
    GBAtemp Patron
    SonyUSA is a Patron of GBAtemp and is helping us stay independent!

    Our Patreon
    May 12, 2006
    United States
    Let's be clear: Team Fail did not decrypt that ROM in the screenshot, that is the work of others.
     
    loco365 likes this.
  16. Apache Thunder

    Apache Thunder I have cameras in your head!

    Member
    15
    Oct 7, 2007
    United States
    Levelland, Texas
    Perhaps one day Pokemon XY can have a randomizer and a Draino hack or stuff similar to that effect. :P Still gonna need a Gateway to play it, but whatever. :P
     
  17. spf180

    spf180 Member

    Newcomer
    1
    Jul 2, 2013
    United States
    California
    That crappy Gateway only works on 4.5. So have fun finding a 4.5 3ds

    I wasn't talking about the screenshot. I was talking about this Decryption KeyGen.
     
  18. Abcdfv

    Abcdfv What comes around goes around.

    Member
    6
    Dec 24, 2013
    United States
    I found one in the second shop (first shop wouldn't let me check FW) I went into on my first try. The're far more common than you think.
     
  19. Relys

    Relys ^(Software | Hardware) Exploit? Development.$

    Member
    7
    Jan 5, 2007
    United States

    Ah, I wasn't talking about you. Just the other people who have decrypted roms before.

    I love the work you've done for music and video extraction.
     
  20. Celice

    Celice GBAtemp Advanced Maniac

    Member
    5
    Jan 1, 2008
    United States
    Yours is the best kind of boredom :)
     
Quick Reply
Draft saved Draft deleted
Loading...