![]() |
Platforms, Frameworks & Libraries »
Mobile Development »
General
Intermediate
License: The GNU General Public License (GPL)
Password Safe Reader for Windows MobileBy Svante Seleborg, Alphons van der Heijden, Dave Shaw, katakana2A Windows Mobile C# reader for the popular Password Safe archive files |
C#, WinMobile (PocketPC-2002, WinMobile2003, WinMobile5, WinMobile6), .NETCF, PalmOS, J2ME, iPhone, Android, Blackberry, Visual-Studio (VS2008), ADO.NET, WinForms, SQL-CE
|
|
Advanced Search Add to IE Search |
|
|
|
||||||||||||||||
For a long time, we have been using the excellent Password Safe (referred forward as PS) program for storing the countless passwords necessary in today's life. But a lot of time we are not at the computer where our PS database is and we really need that password. Using the excellent work of Svante Seleborg (who made the PS Reader library for Windows XP/Vista) and Alphons (who modified it in order to work on Windows Mobile), I created a GUI around that library, which I also optimized a little for fast search.
The program requires .NET Compact Framework 3.5 and of course Windows Mobile (2003, 5, 6). The program is at its very beginning: the PS archive must be named exactly pass.psafe3 and be placed in My Documents in root directory of the device (not in Internal Storage, SDMMC, Storage Card, etc). It is also possible to sync this file very easily with the file on the computer.
Svante made the original Password Safe Reader library, so most of the hard work is described in his article. Alphons modified the library in order to work on the Windows Mobile OS. I made the GUI which works like this: after program load click Open File and the program will fill a DataGrid bound using Binding Source from ADO.NET. As soon as you type anything in the textbox, the DataGrid will be filtered real-time, and with pretty good performance.
After that you can click on individual rows to display on the upper part the User and Password. The reason for this is because sometimes the passwords can be pretty long and hard to read on the DataGrid control.
Also, the program stores in registry the password for the file in order to avoid asking for it everytime. If you feel your device can get into the wrong hands, you can use Reset password option from the Password menu.
The code is very alpha at best by my standards, but works ok if the necessary conditions are met. Take into consideration that in the GUI try-catch blocks are almost non existent.
DataGrid you get the information for the Windows version and a lot of the examples there don't apply. In the limited time (3 hours) I made the GUI, I didn't find an autoresize method for columns and a Rows collection of Datagrid. | You must Sign In to use this message board. | ||||||||||||||||||||||||||||||||||||||||||||||||||
|
||||||||||||||||||||||||||||||||||||||||||||||||||
|
||||||||||||||||||||||||||||||||||||||||||||||||||
|
||||||||||||||||||||||||||||||||||||||||||||||||||
|
||||||||||||||||||||||||||||||||||||||||||||||||||
General
News
Question
Answer
Joke
Rant
Admin
Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads.
|
PermaLink |
Privacy |
Terms of Use
Last Updated: 21 Apr 2009 Editor: Sean Ewington |
Copyright 2009 by Svante Seleborg, Alphons van der Heijden, Dave Shaw, katakana2 Everything else Copyright © CodeProject, 1999-2010 Web20 | Advertise on the Code Project |