-
March 29th, 2011, 09:21 AM
#1
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.
-
March 29th, 2011, 01:40 PM
#2
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.
-
March 30th, 2011, 02:02 AM
#3
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...
Articles VB6 : Break the 2G limit - Animation 1, 2 VB.NET : 2005/8 : Moving Images , Animation 1 , 2 , 3 , User Controls
WPF Articles : 3D Animation 1 , 2 , 3
Code snips: VB6 Hex Edit, IP Chat, Copy Prot., Crop, Zoom : .NET IP Chat (V4), Adv. ContextMenus, click Hotspot, Scroll Controls
Find me in ASP.NET., VB6., VB.NET , Writing Articles, My Genealogy, Forum
All VS.NET: posts refer to VS.NET 2008 (Pro) unless otherwise stated.
-
March 30th, 2011, 05:30 AM
#4
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.
-
March 30th, 2011, 09:04 AM
#5
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
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|