pyctr.crypto.seeddb module
- exception pyctr.crypto.seeddb.SeedDBError[source]
Bases:
PyCTRErrorGeneric exception for seed operations.
- exception pyctr.crypto.seeddb.InvalidProgramIDError[source]
Bases:
SeedDBErrorProgram ID is not in a valid format.
- exception pyctr.crypto.seeddb.InvalidSeedError[source]
Bases:
SeedDBErrorThe provided seed is not in a valid format.
- exception pyctr.crypto.seeddb.MissingSeedError[source]
Bases:
SeedDBErrorSeed not found in the database.
- pyctr.crypto.seeddb.load_seeddb(fp=None)[source]
Load a seeddb file.
- Parameters:
fp (FilePathOrObject) – A file path or file-like object with the seeddb data.
- pyctr.crypto.seeddb.get_seed(program_id, *, load_if_required=True)[source]
Get a seed for a Program ID.
- Parameters:
program_id (Union[int, str, bytes]) – The Program ID to search for. If bytes is provided, the value must be little-endian.
load_if_required (bool) – Automatically load using
load_seeddb()if the requested Program ID is not already available.