keepassxreboot / keepassxc

KeePassXC is a cross-platform community-driven port of the Windows application “Keepass Password Safe”.
https://keepassxc.org/
Other
20.07k stars 1.42k forks source link

Error while reading the database: HMAC mismatch - PW correct #10889

Closed alespool closed 3 weeks ago

alespool commented 3 weeks ago

Overview

image

Steps to Reproduce

  1. Open KeePassXC
  2. Insert PW
  3. Get error in screenshot

Expected Behavior

Hello, I am not an expert here and I saw some users already reported similar issues so sorry if this is repeated. I have this database, and I try to insert the password which I am 100% confident I am inputting correctly because I have it written down. But it doesn't open the vault, still. I get this error, and I am afraid the database has been corrupted.

How can I solve this? Are there any other programs I can try to open this database with, maybe to cross-check if the password really is wrong?

KeePassXC - Version 2.7.8 Revision: f6757d3

Qt 5.15.13 Debugging mode is disabled.

Operating system: Fedora Linux 40 (KDE Plasma) CPU architecture: x86_64 Kernel: linux 6.8.11-300.fc40.x86_64

Enabled extensions:

Cryptographic libraries:

Operating System: Linux Desktop Env: KDE Windowing System: Wayland

droidmonkey commented 3 weeks ago

I am 100% confident I am inputting correctly because I have it written down

You either wrote it down wrong or are reading it wrong (like using a zero instead of O). If you are using non ascii characters (like letters with umluts), then you have to type them with the password visible (qt bug).

alespool commented 3 weeks ago

@droidmonkey hey, no I tried like you said with visible characters but I am still blocked out. Is there any way to recover the data? I know with the original KeePass there was something with headers and recovery, not sure with KeePassXC

alespool commented 3 weeks ago

I searched around, found on KeePass' original website it mentions recovery:

image

Does this work with KeePassXC as well? I tried to open my file with a Hex editor, and the first lines of the header were the same as those shown in the screenshot.

droidmonkey commented 3 weeks ago

If you don't know your password then there is nothing that can be done. You can keep trying variants.

alespool commented 3 weeks ago

I'm politely trying to solve my issue, I already told you I know the password is right. Just say you don't know.

droidmonkey commented 3 weeks ago

You do not have your password right, otherwise you wouldn't be posting here. I'm not being flippant, just the reality of the situation.

Let's just say your database is precisely corrupted to show this error, which is extremely unlikely. Even in that case there is no recovery possible due to your encryption parameters being totally wrong.