#1041 KDB (V1.x) file export corrupted in V2.20


The KDB (V1.x) file export is corrupted in V2.20. Worked correctly in V2.19. Consequence: KeePassMobile V0.9.1 (http://www.keepassmobile.com/) rejects database with message: "kdb file invalid: wrong version". Is this a bug in Keepass V2.20 or in KeePassMobile V0.9.1?

HowTo: create a new database with Keepass V2.20 (only examples in there) and export in KeePass KDB (1.x) format. KeePassMobile V0.9.1 open database fails now.


  • Dominik Reichl

    Dominik Reichl - 2012-09-29

    The KDB export is not corrupted.

    KeePass 2.20 exports KDB files in 1.24 format. KeePassMobile needs to be updated to support the 1.24 KDB format.

    All port developers have been notified of the improvements to the KDB and KDBX formats and the required code changes multiple weeks before KeePass 1.24 and 2.20 have been released.

    Best regards

  • Dominik Reichl

    Dominik Reichl - 2012-09-29
    • status: open --> closed
  • Comment has been marked as spam. 

    You can see all pending comments posted by this user  here

    Anonymous - 2012-10-27

    I've also encountered this problem.

    Personally, I'd appreciate the KeePass would keep providing the export in the old 1.22 format (for instance as a next export format besides the new 1.24 format).

    Reason: both the only J2ME ports (KeePassMobile and KeePassJ2ME) don't seem to accept the new format. Development of the KeePassMobile was stopped and forum of the KeePassJ2ME is not active. I'm afraid (for KeePassMobile I'm sure) the authors will ignore the notification about updating to support the 1.24 format.

    Meanwhile, I've found a workaround.
    Please use it on your own risk - it works in my situation but I'm not sure if I've not overlooked something wrong:
    1) uninstall your current version of KeePass (1.20 or newer)
    2) download and install the KeePass 1.19 from archive
    3) install the most recent version of KeePass
    but during the installation uncheck the "Native Support Library" option
    (keep in unchecked whenever you are upgrading to a new version of the KeePass)
    This step will update the whole KeePass excluding the KBD1 export library

    In general - this workaround will leave the KeePassLibC32.dll and KeePassLibC64.dll version 1.22 in your Program Files folder.

    Dominik, could you, please confirm, whether this workaround is safe?

  • Paul

    Paul - 2012-10-28


    Your description suggests downloading KeePass V1 from the V2 archive. have you made a typo?

    cheers, Paul

  • Dominik Reichl

    Dominik Reichl - 2012-10-28

    I cannot guarantee that this workaround will work for all future KeePass versions, but up to now (2.20 and 2.20.1) using the KeePassLibC*.dll files from KeePass 2.19 is safe. Of course, you do not benefit from the new header protection by doing this.

    Best regards


Get latest updates about Open Source Projects, Conferences and News.

Sign up for the SourceForge newsletter:

No, thanks