dislocker icon indicating copy to clipboard operation
dislocker copied to clipboard

Recovery Password Option Does Not Work When Password Provided In Parameter

Open SturgeonInc opened this issue 6 months ago • 0 comments

Password works perfectly fine with command sudo dislocker -v /dev/nvme0n1p3 --recovery-password= -- ~/.windows-files-mountpoint when I enter my password "XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX"

But when passing password as parameter, i.e

sudo dislocker -v /dev/nvme0n1p3 --recovery-password=XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX -- ~/.windows-files-mountpoint

get the error:

Thu Aug  8 03:48:22 2024 [ERROR] Error handling the recovery password: Wrong length (has to be 55)
Thu Aug  8 03:48:22 2024 [ERROR] Error computing the recovery password to the recovery key. Abort.
Thu Aug  8 03:48:22 2024 [CRITICAL] None of the provided decryption mean is decrypting the keys. Abort.
Thu Aug  8 03:48:22 2024 [CRITICAL] Unable to grab VMK or FVEK. Abort.

Note that password is 48 characters. I notice in src/accesses/rp/recovery_password.c, the password length is compared against 48+7. Maybe this +7 is not necessary when passing password as a parameter or something?

SturgeonInc avatar Aug 08 '24 07:08 SturgeonInc