Recovering a Password on FileVault2 Encrypted Mac
If it would be that easy to restore or find your password FileVault would completely miss its major objective: safely encrypt your data/volume.



Booting to Recovery Mode and after opening Terminal in the menubar -> Utilities enter

filevaultrecovery


The app "Reset Password" will open in the background.

If you saved your password in iCloud choose the first radio button (I forgot my password) and continue resetting your password.

Alternatively you may use your recovery key (if you saved it somewhere) or the password of a second account on your Mac.

To use the recovery key enter in Terminal:

#get the lvUUID
diskuitl cs list
#unlock volume with recovery key
diskutil cs unlockVolume lvUUID -passphrase recoverykey


An example recovery key looks like this: 35AJ-AC98-TI1H-N4M3-HDUQ-UQFG

After unlocking the volume you may reset your password.