![]() |
Re: pySafe - for personal information security
I can confirm too
|
Re: pySafe - for personal information security
Did someone already exported the data from PySafe or tried to use PySafe outside N900 (linux box) ?
|
Re: pySafe - for personal information security
is it possible to export? how?
i know that is possible to import, not export. |
Re: pySafe - for personal information security
1 Attachment(s)
Hi,
I have done a small python script to export a pysafe database to a KeePassX xml file. The generated file is not encrypted, it is intended for the import option of KeePassX. Steps to use it: 1°) Getting on your PC a Python runtime (I cannot help you for this) 2°) Download the attached zip file and unzip it in a directory. You should now have a convert_pysafe.py file. 3°) Download from your N900 your pysafe database (the name is pysafe.sqlite at the root when connected in USB) and copy it in the same directory 4°) Modify the script for the password: in the line 128 replace the "YOUR_PYSAFE_PASSWORD" with your pysafe password 5°) pysafe does not have predetermined fields to store informations (username, password), so you have to tell the script which of your fields have to be used for password and username. The not recognized fields will go in the comment field. To have a detail (the name of the fields in pySafe) stored in the username field, you have to provide its name in a line. For example, to include the details username, login and Email, you have to write (line 160) keep it on one line: Code:
if username == "" and (tag == "username" or tag == "login" or tag == "Email"): Code:
or tag == "login" Code:
if username == "" and ( Code:
): Be careful, details name are case sensitive, so Username and username are two different details name, so you have to write Code:
or tag == "Username" or tag == "username" I am sorry, this is not very user friendly to say the least, but this is my first python script 6°) execute the script Code:
python convert_pysafe.py The script does not modify the original database, so you can execute it multiple times if needed. The biggest part of the script comes from the pysafe sources, so thank you to jaguilar to release it in Open Source. I hope it is not too complicated, and can be useful. Ithier |
Re: pySafe - for personal information security
1 Attachment(s)
Quote:
Open source wins the day once again - even if its open source running on a closed source system. [Update] I've just successfully managed to use a modified version of this script to extract to a PasswordSafe compatible XML then import via the Java version of PasswordSafe on ubuntu. I keep my safe database and share it through Dropbox with the iphone app pwsafe. I had to update the script - mainly to output a group entry for each pwentry, rename database to pwlist, entry to pwentry and comments to notes. I then had to strip out some ampersand characters in the data which broke the Java import on PasswordSafe. To keep these entries separate in PasswordSafe I also prepended the word 'Import.' to the group entry so it loads them in under a group folder called 'Import'. The modified script is included below for anyone who wants to use it - don't forget to change the password entry (pysafe_password) and if you have trouble importing check your XML output file for unusual characters. Good luck! |
All times are GMT. The time now is 16:31. |
vBulletin® Version 3.8.8