Skip to content

Recovery Password Option Does Not Work When Password Provided In Parameter #331

@SturgeonInc

Description

@SturgeonInc

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?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions