Will Code for Device – Winner


Will Code for Device – Winner

Todd Acheson

PDA Diary is a simple application designed to store encrypted user information (textual). Great tool for storing passwords, key codes, credit card numbers, PINs, bank information, private notes, software registration codes, etc. Encryption is performed utilizing a homegrown Blowfish implementation (very fast). The first time the application runs, it creates two (2) sample entries. To view these entries, go to the Password screen and enter the password "tapdance". User should delete these entries and enter their own password upon using the application. User entered information is stored in files on the device in the PDADiary program folder. Each entry is stored as its own file, eliminating the requirement for a database. Initial designs with SQLServerCE and XML (using ![CDATA[xxx]]) proved fatal, due to the fact these storage mediums were failing to support the range of characters present in an encrypted string. PDA Diary will also export user data to a text file.

Show me the code

Comments (3)

  1. Jim says:

    Thanks for this sample.

  2. Marauderz says:

    Did you Base64Encode the encrypted contents before storing it into SQL? And what type of column were you using for it?

  3. Todd A. says:

    Marauderz,

    No, i did not attempt to Base64Encode the encrypted contents.

    I have no doubt there is a way to store the encrypted contents in SQL CE. In the limited time I had to build this, I choose to use encrypted files instead.

Skip to main content