Saving multiple arrays and variables to encrypted file?
I'm looking to be able to save and load the content from multiple structured arrays and variables into/from an encrypted file, is there any reliable source of information or tutorial that I'd be able to use for this? I've never written a program in visual basic that writes to/reads from a file.
I'm using microsoft visual studio 2008.
Thankyou very much,
Hanii Puppy.
Re: Saving multiple arrays and variables to encrypted file?
While VS2008 has tools, why not upgrade to VS2010? It's a FREE DOWNLOAD, and they just released SP1 for it.
The framework has an Encryption class that you can use.
Re: Saving multiple arrays and variables to encrypted file?
just do a search for StreamReader & StreamWriter ...
there are 100's of examples using these to read and write files...
Encryption is something that you will have to handle yourself, however there are a few Encryption objects in VS.. Search for Security.Cryptography to find a few samples...
Re: Saving multiple arrays and variables to encrypted file?
I'm not using my own copy of visual basic 2008, I'm using my college's - and I have to have the same copy as the college for compatibility.
I couldn't find anything on saving multiple arrays and variables in one files - only in individual files, that's why I'm posting here.
Re: Saving multiple arrays and variables to encrypted file?
This is a tough program to start your VB.NET programming career off with....
This is actually called persistence. You need to have a dataobject that implements the ISerializable interface, besides that, you then have to make it serializable.
Search for array persistnece or object persistence in google.
With Encryption, well, I use the Rijndael method quite often with great success, so maybe a search for that in google may also help you a lot