KWallet format

KWallet format

Postby vikinge » 05 Oct 2006, 18:22

I would like to import my data into KeePassX. I would like to know the file structure of the kwallet format. My plan is to manipulate my current ewallet data 200+ records into the kwallet format and import into KeePassX. Can you provide detailed structure ?
vikinge
KPX user
 
Posts: 1
Joined: 05 Oct 2006, 18:20

Postby Tarek » 06 Oct 2006, 00:18

The KWallet XML-Format is self-explanatory - here is a little example:
Code: Select all
<wallet name="MyWallet">
  <folder name="Passwords">
    <password name="Entry 1">MyFirstPassword</password>
    <password name="Entry 2">MySecondPassword</password>
  </folder>
</wallet>

You can study the format by simply exporting a test wallet and examing the content of the exported XML-file.
Tarek
Admin
 
Posts: 190
Joined: 07 Aug 2005, 18:38

Postby jwq » 31 Aug 2007, 10:05

I too would like to know the KWallet XML format so that I can migrate a large number of passwords to KeePassX. I don't have access to a Linux install, unfortunately, and so can't export a test KWallet to XML in order to see the format.

I also can't find anything about the KWallet XML format online, even at the KDE site. I even tried looking at the KWallet source code, without finding enlightenment.

The Import_KWalletXml.cpp source code was a little more illuminating; if I read the correctly (and I'm not sure I do) then the only XML structure that KeePassX understands is that shown above. Is this correct?
jwq
KPX user
 
Posts: 3
Joined: 31 Aug 2007, 03:52

Postby dillo » 08 Feb 2008, 14:15

Tarek wrote:The KWallet XML-Format is self-explanatory - here is a little example:
Code: Select all
<wallet name="MyWallet">
  <folder name="Passwords">
    <password name="Entry 1">MyFirstPassword</password>
    <password name="Entry 2">MySecondPassword</password>
  </folder>
</wallet>

You can study the format by simply exporting a test wallet and examing the content of the exported XML-file.


I looked at the xml file exported by Keepass on the PC version and found that the format thereof is nothing like the format of the KWallet xml file. Here is a sample:

<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<pwlist>
<pwentry>
<group tree="General">eMail</group>
<title>AOL</title>
<username>hotdog22</username>
<url></url>
<password>lemon-tree</password>
<notes>Verification code: 84f1b305-70c74e39-454dcfd4df&#xD;&#xA;&#xD;&#xA;</notes>
<uuid>bd6520c458da58edde0c620d28cfdc88</uuid>
<image>0</image>
<creationtime>2006-01-08T18:45:21</creationtime>
<lastmodtime>2007-07-19T05:28:51</lastmodtime>
<lastaccesstime>2007-07-19T05:28:51</lastaccesstime>
<expiretime expires="false">2999-12-28T23:59:59</expiretime>
</pwentry>

From the above, the KWallet xml file is quite sparse when compared to the Keepass xml file.

What I don't understand is why the xml file is grayed out when one selects the "Import from KWallet XML-File (*.XML)" option. One would think that KeePassX would at least allow one to attempt to load the file and then fail with an error message that reports a problem with the file structure.

I then modified the above file such that the tags were identical to the sample provided and attempted to import the KWallet formatted text file and obtained the same results.

Thus it appears that the XML Import option is broken.

Dazed and Confused
dillo
KPX user
 
Posts: 3
Joined: 06 Feb 2008, 12:22

Re: KWallet format

Postby jwq » 17 Aug 2010, 13:29

FWIW at this point in time, there was a bug preventing XML file importation [Mac] Can't select XML files to import from dialog - ID: 1804588 which was subsequently fixed.
jwq
KPX user
 
Posts: 3
Joined: 31 Aug 2007, 03:52


Return to Open Discussion

Who is online

Users browsing this forum: No registered users and 2 guests