maemo.org - Talk

maemo.org - Talk (https://talk.maemo.org/index.php)
-   Applications (https://talk.maemo.org/forumdisplay.php?f=41)
-   -   pySafe - for personal information security (https://talk.maemo.org/showthread.php?t=40108)

titou1234 2010-02-09 23:53

Re: pySafe - for personal information security
 
I didn't find how to send a PM, and perhaps it is interesting to others so ...

I can manage to transform, one of keyring exports to one of pysafe imports (better with the XML now) and if some are interested, I can write the instructions to do it.
So, sure, it would be easier for me if you develop this import, but I don't think this application on this platform (keyring on Palm OS) is used a lot, so it's not going to be useful to a lot of people.
Perhaps it would be better to spend your time to add features to pySafe. For example keyring had the following features that I find very useful:
* quick filter: press the first letters and go directly to the entry, no matter the entry's category
* generate password: when your create a new entry, the application can provide you with a password, and you can choose the length, and the characters to include (small letters, capital letters, numbers, symbols).
* auto-lock: after some, you can only see the entry list, not the data (username, password, note) of the entry. You have to enter the master password again to access the data.


If you still want to try to write an import for keyring, here are the informations:
gnukeyring doesn't have an export feature, but there is an external program (for those interested it is export.jar and you can find it here: http://gnukeyring.sourceforge.net/conduits.html which can export in csv or xml.

CSV:
Code:

Category,Description,Website,Username,Password,Notes
W perso,20minutes,,uuu,ppp,a small note
Serveur,Local admin,,,,"a note on multiple
lines
"

and xml:
Code:

<?xml version="1.0" encoding="UTF-8"?>
<pwlist>
<pwentry>
  <title>20minutes</title>
  <category>W perso</category>
  <username>uuuu</username>
  <password>ppp</password>
  <notes>a small note</notes>
  <lastmodtime>2007-10-25</lastmodtime>
</pwentry>
<pwentry>
  <title>Local admin</title>
  <category>Server</category>
  <username></username>
  <password></password>
  <notes>a note on multiple
lines
</notes>
  <lastmodtime>2003-12-31</lastmodtime>
</pwentry>
</pwlist>

Here is also a screenshot of the application:
http://gnukeyring.sourceforge.net/snaps/entry.png

jaguilar 2010-02-10 18:00

Re: pySafe - for personal information security
 
@titou1234

I'm writting the code to import from the generated XML by gnukeyring export utility. I believe that in a couple of hours it will available in the repository! :)

jaguilar 2010-02-10 20:40

Re: pySafe - for personal information security
 
A new version is in the repository (0.5.0).

- Import from Keyring for PalmOS (xml format)
- Import from Handy Safe Pro (XML)
- Fixed issue removing an item

titou1234 2010-02-10 20:46

Re: pySafe - for personal information security
 
Quote:

Originally Posted by jaguilar (Post 520102)
- Import from Keyring for PalmOS (xml format)

Thank you very much, I'm going to test it right now.

Are you interested in a french translation of pySafe ?

I saw a pot file in a previous message http://talk.maemo.org/showpost.php?p...6&postcount=15. Is it still valid ?

jcg81 2010-02-10 21:22

Re: pySafe - for personal information security
 
Quote:

Originally Posted by jaguilar (Post 520102)
A new version is in the repository (0.5.0).

- Import from Keyring for PalmOS (xml format)
- Import from Handy Safe Pro (XML)
- Fixed issue removing an item

Cool, I was able to remove the items. One more thing, when I tried to delete the group, there is a typo on verbage "... itens". I am sure you meant items. Just wanted to point out since this app is very useful.

Also, is an edit item button in the works for the future? Thanks again.

rm42 2010-02-10 21:28

Re: pySafe - for personal information security
 
I don't know if this has been asked or if it is even possible, but what about import from KeePass?

Edit:
I just checked and KeePass can export in two formats, plain text and XML. So, it shouldn't be hard at all to create an import option for it. I think this would be a huge feature to have since KeePass is so widespread. Also, since KeePass seems to be moving in the C# - Mono direction, a worthy replacement is certainly going to be very desirable for those that object to those technologies.

jaguilar 2010-02-11 00:03

Re: pySafe - for personal information security
 
1 Attachment(s)
Quote:

Originally Posted by titou1234 (Post 520119)
Are you interested in a french translation of pySafe ?

I saw a pot file in a previous message http://talk.maemo.org/showpost.php?p...6&postcount=15. Is it still valid ?

I would be grateful if you could do! The file was changed a little bit...the newer is attached.

Quote:

Originally Posted by jcg81 (Post 520162)
Cool, I was able to remove the items. One more thing, when I tried to delete the group, there is a typo on verbage "... itens". I am sure you meant items. Just wanted to point out since this app is very useful.

Thanks!! Fixed!

Quote:

Originally Posted by jcg81 (Post 520162)
Also, is an edit item button in the works for the future? Thanks again.

I'm working in a way to rename and move groups/items.

Quote:

Originally Posted by rm42 (Post 520172)
I don't know if this has been asked or if it is even possible, but what about import from KeePass?

I'll look the format that KeePass export the data.

Attachment 7044

dcman 2010-02-11 06:16

Re: pySafe - for personal information security
 
Has anyone had success importing from Handy Safe Pro (XML)? I exported to XML from Handy Safe Pro (Desktop, ver. 1.2 Build 48), copied to the N900 and tried to import. I can select the file in the import wizard, but the 'Next' button is grayed out and pressing 'Finish' yields no import.

Can I provide any more detail to help debug?

titou1234 2010-02-11 13:10

Re: pySafe - for personal information security
 
1 Attachment(s)
Quote:

Originally Posted by jaguilar (Post 520402)
I would be grateful if you could do! The file was changed a little bit...the newer is attached.

Attachment 7044

Here is the french translation:Attachment 7063

I have tested the PalmOs keyring import and it works great, but when I try to access some groups it doesn't work. Perhaps some entries are corrupted. I will investigate this later today and report to you. Do you have some kind of debug mode or log file to help me ?

Thanks.

jaguilar 2010-02-11 14:06

Re: pySafe - for personal information security
 
Quote:

Originally Posted by dcman (Post 520689)
Has anyone had success importing from Handy Safe Pro (XML)? I exported to XML from Handy Safe Pro (Desktop, ver. 1.2 Build 48), copied to the N900 and tried to import. I can select the file in the import wizard, but the 'Next' button is grayed out and pressing 'Finish' yields no import.

Can I provide any more detail to help debug?

Run the program in a terminal window to see if some error message is showed. It's simple: open the terminal, and run "/opt/pysafe/pysafe" (as normal user, NOT root!).

If some error occur, it will appear in terminal window.

I've tested the XML import in the device, and it was fine. The XML was generated in the last version of Handy Safe?

jaguilar 2010-02-11 14:09

Re: pySafe - for personal information security
 
Quote:

Originally Posted by titou1234 (Post 521116)
Here is the french translation:Attachment 7063

I have tested the PalmOs keyring import and it works great, but when I try to access some groups it doesn't work. Perhaps some entries are corrupted. I will investigate this later today and report to you. Do you have some kind of debug mode or log file to help me ?

Thanks for the translation! I'll put in the next release!

To see if some error has ocurred, see the previous message to how to run the program in a terminal window.

titou1234 2010-02-11 22:46

Re: pySafe - for personal information security
 
Quote:

Originally Posted by jaguilar (Post 521178)
To see if some error has ocurred, see the previous message to how to run the program in a terminal window.

I have followed your advice and it helped me a lot to find the problem. pySafe doesn't like entries which contains accents in the title (at least the one which come from the PalmOs keyring import). I have removed them in the xml, made a new import, and all is fine now .
Letters with accents in the note does not cause any trouble.

ofels 2010-02-12 10:33

Re: pySafe - for personal information security
 
1 Attachment(s)
Quote:

Originally Posted by jaguilar (Post 520402)
I would be grateful if you could do! The file was changed a little bit...the newer is attached.

German translation attached.

Update: Update language file to contain the proper encoding. Please feel free to include the file into pysafe.

ofels 2010-02-12 14:38

Re: pySafe - for personal information security
 
A few additions I consider useful and why:

- After a parameterisable time pySafe should lock itself up and require a password to operate. People tend to leave their phone eg. at the office desk unattended with the app running in the background so for the sake of security this would be useful
- Export database: The database should be exportable for backup and redundancy reasons. If my mobile gets stolen I still have the data. As a second use case the application is capable of storing the whole life of people. Social security number, paswords and PINs, etc. If the owner suddenly passes by or will be hospitalzed for some time, relatives should be able to find the information. So I would like to have the information exported, then I can encrypt it with eg. PGP and store that file somewhere safely where relatives can access it just in case. The passphrase can be stored separately eg. in a brief case in a locked desk, etc. The mobile phone is just not the right place to make that information available.
- Renaming of items, groups and details is currently not available. This should be added.

Thanks for that app.

matristain 2010-02-13 01:06

Re: pySafe - for personal information security
 
1 Attachment(s)
Quote:

Originally Posted by jaguilar (Post 521172)
Run the program in a terminal window to see if some error message is showed. It's simple: open the terminal, and run "/opt/pysafe/pysafe" (as normal user, NOT root!).

If some error occur, it will appear in terminal window.

I've tested the XML import in the device, and it was fine. The XML was generated in the last version of Handy Safe?

Screenshot from console attached hope this help.

-All I wet import correct are this 3 lines from XML (exported from Handy Safe Descktop Profesional V. 1.2 48)

<HandySafe>
<Folder name="MyFolderName">
<Card name="MyCardName">
Next line
<Field name="MyFildName" type="6">MyFildValue</Field>

Need any more info?

titou1234 2010-02-13 20:56

Re: pySafe - for personal information security
 
Quote:

Originally Posted by jaguilar (Post 520102)
- Import from Keyring for PalmOS (xml format)

As I said before the PalmOS keyring import works great except for the accents letters in the title, but it is no big deal as it is very easy to remove them. Unfortunately the details in the items appears in the reverse order: le username is the last and the last modifier date is the first. I have try to modify the order in the xml but with no avail.
Could you please invert the order in the import so the most important details appears first: username, password, note and finally last modified date.

Thanks in advance.

pcsabi 2010-02-14 10:13

Re: pySafe - for personal information security
 
3 Attachment(s)
Hi jaguilar,

Thanks for the program!

I tried to import my HandySafe data and the import was unsuccesful maybe because of the accented characters. I tried both the CSV and XML format.

Attaching a sample XML file and two screenshot.

The first screenshot's test case:
Deleting pysafe.dat, starting application from xterm and importing the XML file. The was no items imported ( basically was, but they didn't appeared in the application )

The second screenshot:
After the previous import restarted application from xterm. The application crashed.

Both problem seems to be unicode character encoding problem.

Can we access the source code somewhere ? I didn't find it on garage.

Thanks again for your effort !

titou1234 2010-02-14 11:37

Re: pySafe - for personal information security
 
Hi pcsabi,

The error message I had was the same. I removed the accents letters from the title and all was fine.
Perhaps you could try to remove accents from the Folder and Card names only.

pcsabi 2010-02-14 18:57

Re: pySafe - for personal information security
 
Hi,

I tried it already. The unicode encoding problem is more general.
Unfortunatelly I have cards with custom field names with accents also and the error message is similar with these card. ( There is no crash, but the cards with custom accented fields are not shown in pysafe. )

Probably I could fix the python code if I had access to the source code.

corwin78 2010-02-14 22:55

Czech translation
 
1 Attachment(s)
Hello guys, here is the Czech translation... :)

teddy3 2010-02-17 21:43

Re: pySafe - for personal information security
 
I wait with installation trough german localisation. It's great to find an app like handysafe!

rm42 2010-02-17 21:56

Re: pySafe - for personal information security
 
I am eagerly waiting to hear the announcement of KeePass import being supported. This app will fill a great void. Especially when the desktop version is released. ;)

ofels 2010-02-18 09:18

Re: pySafe - for personal information security
 
Quote:

Originally Posted by teddy3 (Post 533080)
I wait with installation trough german localisation. It's great to find an app like handysafe!

Not sure whether you noted it already but I have sent in the german localisation files last week. Hopefully they will be integrated in the next release.
Otherwise I can also send the .mo file which can be manually copied in the correct location on the device.

jaguilar 2010-02-18 17:31

Re: pySafe - for personal information security
 
Sorry for the missing....I'll answer all the questions in one message! It's more clear! :)

First of all, thanks for the translations!

Renaming and moving groups, sub-groups, items and details are in the roadmap. This is not possible now because I was trying to use context menus, but it is too hard, so I abandoned that approach.

The program was not made to stay always opened, so I don't thought in a lock system, but it's possible to do.

@matristain

The file is not the cause of the error! It's another problem. It is the first thing I'll see.

In fact, I forgot to test the import using accented characters. I thought that Python would take care itself of it, without any intervention....but I was wrong!

The source files aren't in the garage (yet). I'd read sometime ago about the process...will try again after fix these issues!

Thanks again for all!

jaguilar 2010-02-19 16:13

Re: pySafe - for personal information security
 
Sorry...I forgot to answer this question!

Quote:

Originally Posted by titou1234 (Post 525121)
As I said before the PalmOS keyring import works great except for the accents letters in the title, but it is no big deal as it is very easy to remove them. Unfortunately the details in the items appears in the reverse order: le username is the last and the last modifier date is the first. I have try to modify the order in the xml but with no avail.
Could you please invert the order in the import so the most important details appears first: username, password, note and finally last modified date.

The groups, items and details are always alphabetically ordered, no matter how it appears in the imported file. In the moment, there is no way to change it. But I thought in some kind of "order window" to change it...and show the information in the order that the user wants.

titou1234 2010-02-19 16:30

Re: pySafe - for personal information security
 
Quote:

Originally Posted by jaguilar (Post 536780)
Sorry...I forgot to answer this question!



The groups, items and details are always alphabetically ordered, no matter how it appears in the imported file. In the moment, there is no way to change it. But I thought in some kind of "order window" to change it...and show the information in the order that the user wants.

OK, thank you for the answer, but, in my xml file from keyring, can I rename the fields to have a better order. For example: username -> a_username, password -> b_password, note->c_note ... ?

jaguilar 2010-02-19 16:36

Re: pySafe - for personal information security
 
Quote:

Originally Posted by titou1234 (Post 536810)
OK, thank you for the answer, but, in my xml file from keyring, can I rename the fields to have a better order. For example: username -> a_username, password -> b_password, note->c_note ... ?

Yes!! It's a workaround for now!

Diamorph 2010-02-19 22:44

Re: pySafe - for personal information security
 
Waited for a possibilty to import my HandySafe data until day one!
Thank you!

jaguilar 2010-02-20 01:42

Re: pySafe - for personal information security
 
New version!!

- Fixed issues with unicode importing files (I hope so)
- Including French, German and Czech translation

teddy3 2010-02-20 02:08

Re: pySafe - for personal information security
 
Is 0.5.0 the new one? How can I change the language?

jaguilar 2010-02-20 04:10

Re: pySafe - for personal information security
 
Quote:

Originally Posted by teddy3 (Post 537664)
Is 0.5.0 the new one? How can I change the language?

Nope....the new version is 0.6.0.

The language is automatically changed based in the N900 settings. If the device is using English, then pySafe will be in English, if the device is in German, pySafe will be in German.

teddy3 2010-02-20 14:47

Re: pySafe - for personal information security
 
Ok, thanks. I think, it's in the repo in the next few days. Looks good to me.

teddy3 2010-02-20 17:53

Re: pySafe - for personal information security
 
Hey jaguilar, I got the new version now. Great app!
One thing on my wishlist: editing of an entry description afterwards, instead of delete and reentry with new description. I hope you understand what I mean. My english isn't very good :rolleyes:

jaguilar 2010-02-24 02:52

Re: pySafe - for personal information security
 
That's a question for those who are waiting for a KeePassX importing: all the fields should be imported, or "expire" and the dates fields (creation, last access and last mod) could be ignored?

spooley 2010-02-24 09:40

Re: pySafe - for personal information security
 
jaguilar: THANK YOU for this excellent work! I have a large collection of data built up in HandySafe from several Symbian phones (UIQ & S60) and Handy Safe Desktop.

With pySafe 0.6.0 I was able to export in XML from Handy Safe Desktop Professional (1.0 Build 44) and import the lot into pySafe. That's a 215KB XML file containing about 500 entries in 20 categories!

With all that data to manage: are you considering adding a search function?

Thanks again for your excellent work so far,

Simon.

rm42 2010-02-24 19:17

Re: pySafe - for personal information security
 
Quote:

Originally Posted by jaguilar (Post 543669)
That's a question for those who are waiting for a KeePassX importing: all the fields should be imported, or "expire" and the dates fields (creation, last access and last mod) could be ignored?

I am not sure what you mean by "expire", but as far as the date fields, I personally don't care. Just being able to import the data fields is enough. Thanks.

Edit:
If by expire you mean "truncate" that would be fine by me. For example, if there are fields in Keepass that do not have a matching field in pysafe you could simply append the data to a Notes field, for example.

jaguilar 2010-02-26 01:14

Re: pySafe - for personal information security
 
Quote:

Originally Posted by rm42 (Post 544775)
I am not sure what you mean by "expire", but as far as the date fields, I personally don't care. Just being able to import the data fields is enough. Thanks.

Edit:
If by expire you mean "truncate" that would be fine by me. For example, if there are fields in Keepass that do not have a matching field in pysafe you could simply append the data to a Notes field, for example.

The "expire" field I guess that is used for KeePassX to know when the password must be changed. But only *real* KeePassX users should know if it is true...

PySafe itself hasn't any "fields"! You can create what you need/want....it is only a program that keeps a list of key/value pairs, when "key" is the field name and "value" is its value.

pcsabi 2010-03-01 20:13

Re: pySafe - for personal information security
 
Quote:

Originally Posted by jaguilar (Post 537638)
New version!!

- Fixed issues with unicode importing files (I hope so)
- Including French, German and Czech translation

Hi jaguilar,

Everything OK with the hungarian characters in the new version. I successfully imported my HandySafe XML database into PySafe. Thanks !

Two more function would be good in a new version:
- search
- export into CSV or XML file

Thanks again !

--
pcsabi

jaguilar 2010-03-02 00:56

Re: pySafe - for personal information security
 
Hi folks!

This message is to tell everyone that an entry in the Garage was created for pySafe. For those who wants to follow the development, request a feature, or report a bug, please use the Garage.

The source code isn't there yet, but I'll put it soon.

Thanks!

Barrie 2010-03-14 00:46

Re: pySafe - for personal information security
 
Excellent app. You have put a lot of work into this, obviously, and I would like to say thank you.

I imported the file from Handy Safe Pro and all is perfect. I am prepared to pay for this application because I think it is worth it. Please let us know how to pay.

Barrie


All times are GMT. The time now is 13:23.

vBulletin® Version 3.8.8