mirror of
https://github.com/rvtr/libWiiPy.git
synced 2025-06-18 10:45:35 -04:00
Add netcard key
This commit is contained in:
parent
9bfb44771e
commit
eaabaf31f3
@ -6,13 +6,14 @@ import binascii
|
|||||||
common_key = 'ebe42a225e8593e448d9c5457381aaf7'
|
common_key = 'ebe42a225e8593e448d9c5457381aaf7'
|
||||||
korean_key = '63b82bb4f4614e2e13f2fefbba4c9b7e'
|
korean_key = '63b82bb4f4614e2e13f2fefbba4c9b7e'
|
||||||
vwii_key = '30bfc76e7c19afbb23163330ced7c28d'
|
vwii_key = '30bfc76e7c19afbb23163330ced7c28d'
|
||||||
|
netcard_key = '67458b6bc6237b3269983c6473483366'
|
||||||
|
|
||||||
|
|
||||||
def get_common_key(common_key_index) -> bytes:
|
def get_common_key(common_key_index) -> bytes:
|
||||||
"""
|
"""
|
||||||
Gets the specified Wii Common Key based on the index provided.
|
Gets the specified Wii Common Key based on the index provided.
|
||||||
|
|
||||||
Possible values for common_key_index: 0: Common Key, 1: Korean Key, 2: vWii Key
|
Possible values for common_key_index: 0: Common Key, 1: Korean Key, 2: vWii Key, 3: Netcard Key
|
||||||
|
|
||||||
Parameters
|
Parameters
|
||||||
----------
|
----------
|
||||||
@ -31,6 +32,8 @@ def get_common_key(common_key_index) -> bytes:
|
|||||||
common_key_bin = binascii.unhexlify(korean_key)
|
common_key_bin = binascii.unhexlify(korean_key)
|
||||||
case 2:
|
case 2:
|
||||||
common_key_bin = binascii.unhexlify(vwii_key)
|
common_key_bin = binascii.unhexlify(vwii_key)
|
||||||
|
case 3:
|
||||||
|
common_key_bin = binascii.unhexlify(netcard_key)
|
||||||
case _:
|
case _:
|
||||||
raise ValueError("The common key index provided, " + str(common_key_index) + ", does not exist.")
|
raise ValueError("The common key index provided, " + str(common_key_index) + ", does not exist.")
|
||||||
return common_key_bin
|
return common_key_bin
|
||||||
|
Loading…
Reference in New Issue
Block a user