Project
Back to projects
Adventurers resting around a campfire in a Wizardry Variants Daphne dungeon

Wizardry Variants Daphne © Drecom Co., Ltd. Wizardry™ is a trademark of Drecom Co., Ltd.

Script

Wizardry Variants Daphne Bundle Decryptor

Decrypts the Unity bundles stored in Wizardry Variants Daphne's downloaded asset cache.

Overview


The downloaded bundles in Wizardry Variants Daphne’s asset cache are encrypted. Their names matter too, since each one is used as the salt when the key is made.

The script takes care of that and writes the decrypted bundles to another folder.

Prerequisites


The script requires Python 3.10 or newer and the cryptography package. Install the package from PowerShell before running it:

1
python -m pip install cryptography

Usage


For the whole cache, give the script the assetcache folder and somewhere to put the decrypted bundles:

1
python .\wizardry_bundle_decrypt.py .\assetcache .\decrypted-cache

One cache file can also be decrypted on its own. Keep its original name because the script uses it as the salt:

1
python .\wizardry_bundle_decrypt.py .\assetcache\original-cache-name .\decrypted.bundle

Compatibility


The script was tested on all 760 cache files from Steam build 25086378. Each one produced a UnityFS header with the right declared size. A later update could change the password or the stream code, so newer builds may need to be checked again.