Basic4ppc - Windows Mobile Development  

Go Back   Basic4ppc - Windows Mobile Development > General > Chit Chat
Home Register FAQ Members List Search Today's Posts Mark Forums Read

Chit Chat The place for open discussions.


Encrypting, decrypting - any better idea how to work with file?


Reply
 
LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 04-02-2008, 10:46 AM
Standa's Avatar
Junior Member
 
Join Date: May 2007
Location: Czech Republic
Posts: 25
Default Encrypting, decrypting - any better idea how to work with file?

Hi, maybe stupid question, but...
I am trying to write passwords storage software using crypto library. What is better:
1) Encrypt whole text file with passwords, and when need to read, decrypt this file, save it to string and read.
...or...
2) Encrypt only separate items like www site, nick, pass etc., and save it to readable file. On reading, decrypt only those items what I need to see.
...or...
3) everything is bad, I have better solution for you...

Here is planned format for storage file:

Quote:
<entry>
<desc1>Title</desc1>
<desc2>Address</desc2>
<desc3>Nick</desc3>
<desc4>Password</desc4>
<text1>Basic4ppc</text1>
<text2>http://basic4ppc.com</text2>
<text3>Shrek</text3>
<text4>MyLovelyFiona</text4>
</entry>
I hope, you understand me, this post is very close to the end of my English knowledge
__________________
XDA Flame
Reply With Quote
  #2 (permalink)  
Old 04-02-2008, 07:36 PM
Knows the basics
 
Join Date: May 2007
Location: Daarsit
Posts: 92
Default

I'd use a table & "save" it as a CSV (process it as an array before saving). Then you can load the encrypted file, covert back to csv & use that to feed a table in memory. Makes referencing the data much easier later, as well as obfuscating the structure of your file.

Then again if you're paranoid about someone sneaking a peak at your memory then you are probably using the wrong solution all together.
Reply With Quote
  #3 (permalink)  
Old 04-03-2008, 08:05 AM
Standa's Avatar
Junior Member
 
Join Date: May 2007
Location: Czech Republic
Posts: 25
Default

Yes, table looks like best idea, it saves a lot of my work. Thanks
__________________
XDA Flame
Reply With Quote
Reply



Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On

Similar Threads
Thread Thread Starter Forum Replies Last Post
Best data to work with GPS Put Claude Questions & Help Needed 4 10-21-2007 08:58 PM
Just an idea ..... Scubaticus Forum Discussion 3 07-20-2007 02:56 PM
Give me an idea conf Questions & Help Needed 6 07-03-2007 06:18 PM
Encrypting and Decrypting XerVision Questions & Help Needed 1 06-16-2007 04:42 PM
two timers won't work sloopa Bug Reports 1 05-22-2007 06:21 AM


All times are GMT. The time now is 05:50 PM.


Powered by vBulletin® Version 3.6.10
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO 3.1.0