d0k3 / GodMode9

GodMode9 Explorer - A full access file browser for the Nintendo 3DS console :godmode:
GNU General Public License v3.0
2.09k stars 190 forks source link

Implement key generating algorithm #786

Open Wynadorn opened 1 year ago

Wynadorn commented 1 year ago

Describe the feature you'd like GodMode9 could be changed to no longer have to rely on encTitleKeys.bin and decTitleKeys.bin. These keys can be generated as long as the user provides a gm9 with a 32-bit common key and the correct passphrase.

For further info please see

d0k3 commented 1 year ago

You're correct in that GM9 could be changed, but that algorithm you're referring to was leaked and not reverse-engineered, so it's a bit questionable. Also, you're aware that the passphrase is the same only for most but not all games?

Anyways, this has been discussed in the past, and while I'd really, really like to have this algorithm in GM9, I'd rather not. I'd be okay with this algorithm being added via some external (ie. not downloadable from here or included in the GM9 source code) means, but that would be somewhat similar to just having a complete encTitlekeys database, I guess..

I'm keeping this open just in case any good ideas will be coming in.

urherenow commented 1 year ago

In similar cases, the solution may have been too messy for your tastes. It would involve having to provide the extra code from an external source (say... pastebin or something), and in your code, add a build rule to include the file(s) (plural if both an .h and a .c is required) like make keygen=1, and appropriate ifdefs within the appropriate menus to add the option.