Import KeePass password database into KWallet
Hello.
At the enterprise where I work, all sorts of things for "security" are very fond of and, unfortunately, everything is Windows. But this is bad luck, I have Linux and they sent me passwords to the database for KeePass (note: I do not want to put the KeePass mono application under Linux). A Windows virtual machine is worth it, but keeping it open is not always a hunt; all the same, its memory eats up and is already lacking. It was then that I had the idea to transfer all the passwords from this database for KeePass to my KWallet.
By the way, for those who are not familiar with KWallet I will describe it a little. This is a program that is included in the standard KDE package and is designed to store secret information used by KDE applications. Here I store passwords on various sites, access keys, etc. In other words, this is the same as KeePass but under Linux. And there is one of the significant advantages that I don’t need to manually copy and paste passwords into the fields for entering the login and password, and the programs themselves get it from my Wallet, the only thing they ask is to enter a password to open the wallet if it is closed. Very convenient, especially since it integrates perfectly with applications. And I won’t be surprised if Microsoft will soon copy, like everything else, to itself in Windows.
So let's continue. I thought of making the transfer of passwords as simple as possible, namely exporting passwords from KeePass to XML, applying the conversion to XML format of digestible KWallet and then importing into my wallet. Thought-did, especially since I am writing this article longer than I wrote the XSLT transformation.
Here it is:
And for the conversion, I used
The resulting kwallet.xml file was successfully imported into my wallet. And now all the passwords from KeePass live perfectly in my KWallet wallet.
Note 1: I want to notice that I did this in order to use only native Linux applications, and not Windows programs ported to Linux.
Note 2: I am writing this article to share with the community the result of my work, all of a sudden someone comes in handy.
UPD: This article is not aimed at advertising KWallet, and I'm not trying to convince anyone - a matter of taste. I like KWallet, I use it and therefore offer an import option. Who does not agree - you will not change your opinion and my opinion in any way. Do not like do not use. And if you like it ...
Use your health
At the enterprise where I work, all sorts of things for "security" are very fond of and, unfortunately, everything is Windows. But this is bad luck, I have Linux and they sent me passwords to the database for KeePass (note: I do not want to put the KeePass mono application under Linux). A Windows virtual machine is worth it, but keeping it open is not always a hunt; all the same, its memory eats up and is already lacking. It was then that I had the idea to transfer all the passwords from this database for KeePass to my KWallet.
By the way, for those who are not familiar with KWallet I will describe it a little. This is a program that is included in the standard KDE package and is designed to store secret information used by KDE applications. Here I store passwords on various sites, access keys, etc. In other words, this is the same as KeePass but under Linux. And there is one of the significant advantages that I don’t need to manually copy and paste passwords into the fields for entering the login and password, and the programs themselves get it from my Wallet, the only thing they ask is to enter a password to open the wallet if it is closed. Very convenient, especially since it integrates perfectly with applications. And I won’t be surprised if Microsoft will soon copy, like everything else, to itself in Windows.
So let's continue. I thought of making the transfer of passwords as simple as possible, namely exporting passwords from KeePass to XML, applying the conversion to XML format of digestible KWallet and then importing into my wallet. Thought-did, especially since I am writing this article longer than I wrote the XSLT transformation.
Here it is:
And for the conversion, I used
xsltproc
this command:xsltproc -o kwallet.xml ./keepas2kwallet.xsl ./keepass.xml
The resulting kwallet.xml file was successfully imported into my wallet. And now all the passwords from KeePass live perfectly in my KWallet wallet.
And the structure of the imported wallet is as follows:
- KeePass Group is a separate directory in KWallet
- KeePass record title is the name of the match
- KeePass username and password are stored as is.
Note 1: I want to notice that I did this in order to use only native Linux applications, and not Windows programs ported to Linux.
Note 2: I am writing this article to share with the community the result of my work, all of a sudden someone comes in handy.
UPD: This article is not aimed at advertising KWallet, and I'm not trying to convince anyone - a matter of taste. I like KWallet, I use it and therefore offer an import option. Who does not agree - you will not change your opinion and my opinion in any way. Do not like do not use. And if you like it ...
Use your health