libWiiPy.title.commonkeys Module

libWiiPy.title.commonkeys Module#

The libWiiPy.title.commonkeys module simply provides easy access to the Wii’s common encryption keys.

Module Contents#

libWiiPy.title.commonkeys.get_common_key(common_key_index, dev=False) bytes#

Gets the specified Wii Common Key based on the index provided. If an invalid common key index is provided, this function falls back on always returning key 0 (the Common Key). If the kwarg “dev” is specified, then key 0 will point to the development common key rather than the retail one. Keys 1 and 2 are unaffected by this argument.

Possible values for common_key_index: 0: Common Key, 1: Korean Key, 2: vWii Key

Parameters:
  • common_key_index (int) – The index of the common key to be returned.

  • dev (bool) – If the dev keys should be used in place of the retail keys. Only affects key 0.

Returns:

The specified common key, in binary format.

Return type:

bytes