Skip to content

Instantly share code, notes, and snippets.

View rvtr's full-sized avatar
🤭
Oopsies, I bricked your DS

Lillian Skinner rvtr

🤭
Oopsies, I bricked your DS
View GitHub Profile
@rvtr
rvtr / decrypt_tad.py
Last active December 14, 2023 04:01 — forked from NWPlayer123/decrypt_tad.py
Tool for decrypting DSi TADs (not the ones listed on dsibrew, that's wrong, the installable ones that are closer to WADs), py2/3
from io import BytesIO
from struct import unpack
from binascii import hexlify, unhexlify
from Crypto.Cipher import AES #pip install pycryptodome
import sys
dsi_common_key = unhexlify(b"%032X" % 0xAF1BF516A807D21AEA45984F04742861) # DSi common key
debugger_common_key = unhexlify(b"%032X" % 0xA2FDDDF2E423574AE7ED8657B5AB19D3) # DSi debugger common key (used for `maketad.updater` TADs)
wii_debug_key = unhexlify(b"%032X" % 0xA1604A6A7123B529AE8BEC32C816FCAA) # Wii debug key