You know how it goes: another mail account, a change of provider, another website that requires registration, another machine with some kind of code, … So I’m happy to tote all them all around with me on my Palm Tungsten E2 – using the Palm version of GNU Keyring. A great little program – I’ll keep my Palm for as long as it runs, even if this is the only program I’ll run on it.
But a single “working copy” of such essential information is just not enough. So what about getting the same info on my mobile phone? Well, it so happens that there is a Symbian version of KeepassMobile, so that runs without a problem on my Nokia. But how do I get my data from Palm to Nokia?
Actually, it’s not that complicated – if you can handle a command line of your computer. Here’s what you have to do to prepare for the operation when you’re working on Mac OS X:
- Create a working directory somewhere; let’s call it ‘
work
‘ for the sake of this excercise. Make sure that you can start a reasonably fresh version of Java from the command line from within that directory.
- Download the Saxon XSLT parser from SourceForge: the Java version of the Saxon-B parser will do. Unzip the download, and copy the file ‘
saxon9.jar
‘ to the directory ‘work
‘.
- Go to this URL: http://github.com/rocketraman/keyring-to-keypassx/blob/master/keyring-to-keypassx.xsl, copy the XSLT code on that page to a text editor and save that as the file ‘
keyring-to-keypassx.xsl
‘ in the directory ‘work
‘.
- Go to the GNU Keyring conduits page, which is a tool to export Keyring files to XML written by Jochen Hoenicke.
- Don’t forget to copy the file ‘
Keys-Gtkr.pdb
‘ (the Palm database containing all your Keyring data) to the directory ‘work
‘.
The preparation is done, so you can start a command line (like ‘bash’ on the Mac ;-), set the working directory to ‘work
‘, and execute the following commands (replace ‘password’ with the password to open your Keyring database):
java -jar export.jar Keys-Gtkr.pdb password > keyring.xml
java -jar saxon9.jar -xsl:keyring-to-keypassx.xsl -s:keyring.xml -o:keypassx.xml
Now you kan open the ‘keypassx.xml
‘ file with the KeepassX application, and save it with the password of your choice. Copy the end result of that save to your Nokia, and off you go!
Having written the whole procedure, I wonder: is this really a blog post or should I give this item a more permanent place on the site?
PS. On 2012-05-19, I have corrected a few mistakes, as mentioned on A New Don…
Read Full Post »