Bug 395668 - Documentation for KWallet format to store password
Summary: Documentation for KWallet format to store password
Status: REPORTED
Alias: None
Product: Falkon
Classification: Applications
Component: extensions (other bugs)
Version First Reported In: unspecified
Platform: Fedora RPMs Linux
: NOR wishlist
Target Milestone: ---
Assignee: David Rosca
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2018-06-20 20:45 UTC by Gerry Agbobada
Modified: 2018-06-20 20:45 UTC (History)
0 users

See Also:
Latest Commit:
Version Fixed/Implemented In:
Sentry Crash Report:


Attachments
Xsl file to convert keepass2 export to kwallet import (726 bytes, application/xslt+xml)
2018-06-20 20:45 UTC, Gerry Agbobada
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Gerry Agbobada 2018-06-20 20:45:02 UTC
Created attachment 113472 [details]
Xsl file to convert keepass2 export to kwallet import

Version : falkon.x86_64 3.0.1-2.fc29 (rawhide)

I am currently trying to :
- import all my Keepass 2 passwords into KWallet, and
- make Falkon read passwords from KWallet to auto-fill for all registered sites, like Kee does for Keepass on Firefox.

I found an xslt file on Internet to actually convert the Keepass XML export file to a KWallet XML import file, but I don't know which scheme I should use to make the imported (URL, username, password) tuple in Kwallet so that Falkon can use these out of the box.

Looking at the code, it looks like Falkon is only looking for a "Falkon" or a "Qupzilla" folder in the default wallet ( https://github.com/KDE/falkon/blob/b8bb4dfa31bf2aea4a4d623593c72b49da4a7695/src/plugins/KDEFrameworksIntegration/kwalletpasswordbackend.cpp ).

I tried to store a password using the KWallet backend, and passwords are stored as binary data in the Falkon folder, would it be possible to use Maps in some way so I can just use a xslt conversion scheme to make the data importable in KWallet and useable by Falkon ? As you can see in the attachment, I can pretty much choose everything in the conversion, from the wallet name to the folders name and the keys/values stored in map_entries. This is a slightly modified version of a script found while googling ( http://developers-club.com/posts/190880/ ).

If there's a way to directly convert the xml data so that KWallet imports passwords as "binary data" I'd be glad to learn it. I am unable to find documentation for the moment.