KeePassJava2 icon indicating copy to clipboard operation
KeePassJava2 copied to clipboard

Support for kdbx_4 format

Open starksm64 opened this issue 8 years ago • 7 comments

So I was trying the library on a KeePassX created database and found that the signature verification was failing. After looking at the version release notes: http://keepass.info/news/n170109_2.35.html

I saw that there was a new KDBXv4 database format: http://keepass.info/help/kb/kdbx_4.html

I'm looking into what changes are needed in kdb to support this format.

starksm64 avatar May 28 '17 20:05 starksm64

Version 4 is not currently supported - wholesale changes implied to the file format, limited impact on the XML. I drew a diagram of the differences in Sept 2016 ... not sure this is still right as V4 was a proposal at the time.

https://github.com/jorabin/KeePassJava2/blob/master/Format%20Diagram.svg

Keen to hear if you made any progress on this.

jorabin avatar Jul 06 '17 10:07 jorabin

I just pushed a preliminary version to branch feat/v4 which is capable of reading V4 files - it is in development and contributions are welcome.

jorabin avatar Jan 29 '18 15:01 jorabin

Are there any news with respect to v.4?

ivanovpv avatar May 23 '18 12:05 ivanovpv

Hey Pavel - as mentioned above there is a version in branch feat/v4 which can read v4 files. Would be good if you could check that out and verify.

jorabin avatar May 23 '18 18:05 jorabin

Ping. Is this project still maintained? I could also use KDBX 4 support. Other projects are starting to produce KDBX 4 files (in my case latest pykeepass) that are unreadable in Java. Anyone had success with the v4 branch?

robertvazan avatar Jan 01 '21 03:01 robertvazan

Hi @robertvazan the v4 branch contains code to read v4 files which as far as I know works, however I don't have any use for it myself at the moment, so it would be good if you could check compatibility with what you have.

I do plan to do some maintenance this holiday period, however the road to hell is paved with good intentions, as they say. Either way your feedback on v4 branch would be most welcome.

jorabin avatar Jan 01 '21 15:01 jorabin

Actually, it would be better to do a unit test with sample KDBX 4 file rather than having someone do a one-off manual test. KDBX 4 file can be generated by latest pykeepass, but perhaps one of the GUI tools saves in the new format too.

I am short of time and I have meantime found a workaround that will allow me to continue using KDBX 3 files for some time, so I wouldn't help you with the manual test nor the unit test this time around, sorry.

robertvazan avatar Jan 01 '21 15:01 robertvazan

I just pushed the source for version 2.2-SNAPSHOT which offers read/write support for V4.

Better late than never?

jorabin avatar May 06 '23 15:05 jorabin

Closed in 2.2.1

jorabin avatar Aug 22 '23 11:08 jorabin