From 624aeaac5ea874d2cef3a1b0d323820e4f36a1fe Mon Sep 17 00:00:00 2001 From: NinjaCheetah <58050615+NinjaCheetah@users.noreply.github.com> Date: Mon, 5 Jan 2026 19:07:12 -0500 Subject: [PATCH] Minor fix for libWiiPy v1.0.0 compatibility ContentRecord is now a public type in libWiiPy.title.types rather than a private type in libWiiPy.types --- modules/tkey.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/modules/tkey.py b/modules/tkey.py index 9978fdd..f310e24 100644 --- a/modules/tkey.py +++ b/modules/tkey.py @@ -4,7 +4,7 @@ import binascii import hashlib import libWiiPy -from libWiiPy.types import _ContentRecord +from libWiiPy.title.types import ContentRecord def _secret(start, length): @@ -39,7 +39,7 @@ def _derive_key(tid, passwd): return hashlib.pbkdf2_hmac("sha1", passwd.encode(), salt, 20, 16).hex() -def find_tkey(tid: str, banner_enc: bytes, content_record: _ContentRecord) -> bytes: +def find_tkey(tid: str, banner_enc: bytes, content_record: ContentRecord) -> bytes: # Find a working Title Key by generating a key with a password, then decrypting content 0 and comparing it to the # expected hash. If the hash matches, then we generated the correct key. passwds = ["nintendo", "mypass"]