I'm helping someone that changed their password (Thanks to corporate policy) and then forgot what they set it to. They remember the first part so I would not need to completely brute force it. I was thinking about booting into recovery mode and trying to run some kind of script from bash to try to unlock the partition (diskutil corestorage unlockvolume UUID -passphrase PASSWORD) using different passwords until successful.
- Is there a better approach?
- If this is an okay approach... Does anyone know of any scripts that would do this kin of thing?