Module: nintendo.switch
Provides useful functions and classes related to Nintendo Switch.
def load_keys(filename: str) -> dict[str, bytes]
Loads encryption keys from a file such as prod.keys.
class ProdInfo
Reads a decrypted PRODINFO file.
ProdInfo
def __init__(keys: dict[str, bytes], filename: str)
Creates a new ProdInfo object from the given file. The key set should contain at least ssl_rsa_kek.
def get_device_id() -> int
Extracts the device id.
def get_tls_cert() -> TLSCertificate
Extracts the device certificate.
def get_tls_key() -> TLSPrivateKey
Extract the private key that belongs to the device certificate.