nazariuskappertaal Wrote:I've made a simple python script that allows you to convert the LastPass export format (just save the export as a text file in the same directory as the script) to the KeePass XML import format.
It can be found here: http://github.com/nazariuskappertaal/lastpass2keepass
Usage: python lastpass2keepass lastpassexport keepass.xml
Thanks for writing this! I'm just trying it out, and noted a couple of things:
- not sure which KeePass format it supports, 1.x or 2.x? I'm using 1.x because I can sync that to my Android phone
- if you give this script an encrypted export from LastPass Pocket, it doesn't give an error - useful to say it requires the decrypted LP export file even if that seems obvious. Checking that allEntries is zero length is an easy way to detect a non CSV file.
- Using KeePassX 0.2.x which is a bit old and uses the 1.x format, I ran into a KeePassX bug that wouldn't let me import any XML files, so have still not tested this fully.
- I'm using a TrueCrypt volume to keep the unencrypted export file safe during the export from LP
Curious to know, which version of KeePass did you test this with?