Kunzisoft / KeePassDX

Lightweight vault and password manager for Android, KeePassDX allows editing encrypted data in a single file in KeePass format and fill in the forms in a secure way.
https://www.keepassdx.com/
GNU General Public License v3.0
4.69k stars 275 forks source link

Bad database formatting #1471

Closed cmara2505 closed 1 year ago

cmara2505 commented 1 year ago

Hi, I'm using KeepassDX v.3.5.0Beta02 I have my password file on Onedrive and I use Keepass for PC v. 2.50 (64-bit)

Error when I update DB on KeepassDX and try to reopen both in KeepassDX and in Keepass Windows

Steps to reproduce:

My file is correctly synchronized to Android and I can open for reading using OneDrive app I edit a single line on a password entry and save data close DB in OneDriveApp i see "just modified" confirming that on onedrive file is updated (is also updated on PC) go back to OneDrive app on android and reopen file ERROR: after password input i get message: Failed loading database. Hashes didn't match.

KeePass Database

KeePassDX:

Android:

Further info: I tried to create a new empty DB on windows keepass, and there are no issues. Because my password db is aged many years what could I do to refresh or update db? many thanks

J-Jamet commented 1 year ago

I see 3 possible problems :

cmara2505 commented 1 year ago

Hi, sorry for delay in reply, but I had few time to test your kind solution. Now I went for first option rebuilding my DB that isn't very large (less than 1K entries). After many tests Iwas able to edit a entry on phone and synchronize on PC, so problem was exactly bad formatting as you suggested. I have still some doubts on process to edit DB on phone:

J-Jamet commented 1 year ago

There is no cache as such in KeePassDX, only the database loaded in RAM. If there is a cache problem, it is because the OneDrive application has one. You can read the wiki for more information. https://github.com/Kunzisoft/KeePassDX/wiki/File-Manager-and-Sync