Skip to content

wrap DecryptContentKey in try/catch to prevent erroring out#13

Merged
LukeFZ merged 1 commit intoLukeFZ:masterfrom
InvoxiPlayGames:catch-decryption-errors
Feb 5, 2026
Merged

wrap DecryptContentKey in try/catch to prevent erroring out#13
LukeFZ merged 1 commit intoLukeFZ:masterfrom
InvoxiPlayGames:catch-decryption-errors

Conversation

@InvoxiPlayGames
Copy link

Sometimes on My Machine unsealing certain content instance keys fails, a complete guess is this is as a result of uninstalling or losing access to a license (GP expiry maybe?). This previously prevented the entire process from working. This PR allows it to complete dumping keys, only skipping over ones that fail to decrypt.

Previous output:

INFO: Loading entries from registry...
INFO: Registry loaded.
INFO: Reading device key from snip\deviceKey.txt.
INFO: Successfully loaded device key from file.
Error: checksum failed

New output:

INFO: Loading entries from registry...
INFO: Registry loaded.
INFO: Reading device key from snip\deviceKey.txt.
INFO: Successfully loaded device key from file.
??
├── ?? app1
│   ├── License Type: App
│   └── ?? key1
│       └── Key: snip
├── ?? app2
│   ├── License Type: App
│   └── ?? key2
│       └── Error: checksum failed
├── ?? app3
│   ├── License Type: App
│   └── ?? key3
│       └── Key: snip

@LukeFZ
Copy link
Owner

LukeFZ commented Feb 5, 2026

forgot to merge this, sorry

@LukeFZ LukeFZ merged commit 08a5c8e into LukeFZ:master Feb 5, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants