Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
SturgeonInc opened this issue Aug 8, 2024 · 0 comments

Comments

@SturgeonInc
Copy link

SturgeonInc commented Aug 8, 2024

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?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant