I am working on a project that requires me to store large amounts of sensative data to a file and later retrieve that data and show it in a Grid all sorted out in a nice and neat way.
I have chosen to use the (GridView) compoent by Berg Software to load the data into and my questions are.
1.) How would I go about extracting only parts of the data that is in the file (ex. a subject for an email) and displaying it as one of the cells in the grid and then later when I click on that cell extracting the body of the above email message and showing it in a new window.
2.) Since I will be working with large amounts of sometimes sensative data I would like to be able to compress and encrypt the data inside of the files so nobody can view it outside of the program so my question is obviously what is the best way to do that and ofcourse uncompress and decrypt it again so the program can use it.
I know this all might sound abit confusing so I will try my best to give you an example of the program.
A person opens up the program and writes an email to a friend with the subject of "Hey There" and then the body of the email is "Long time no see" and then presses a button and what should happen next is the subject and the body of the email should be encrypted and stored in a local file that will then be compressed to keep it's size down.
Next when the user opens the program again the local file is automatically uncompressed and decrypted and the subject of the email (ie. Hey There) will be displayed in cell of the Grid and when the user clicks on that cell another window will open up with the body of that message (ie. Long time no see)
Anyway I hope that makes things abit clearer and to summerize again what I need help with is the best way to compress/decompress and encrypt/decrypt the data from the file and extract only part of the data from the file when the program starts and then later extract the rest as needed.
I know this is more like 3 questions instead of 1 but they all fit together and I did not want to start a new topic for each of them and so I thought I would just ask them all here and give it a high point value.