hdiutil chpass, the only means of changing passwords for sparse bundles, doesn’t work in macOS Ventura 13.3.1. The workaround requires a VM and 13.1.
Ventura 13.3.1 can’t change the password of sparse bundles
Ventura 13.3.1 can’t change the password of sparse bundles

