Saving multiple arrays and variables to encrypted file?
CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 5 of 5

Thread: Saving multiple arrays and variables to encrypted file?

  1. #1
    Join Date
    Mar 2011
    Location
    The City of Discovery
    Posts
    3

    Question 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.

  2. #2
    Join Date
    Jan 2006
    Location
    Chicago, IL
    Posts
    14,986

    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.
    David

    CodeGuru Article: Bound Controls are Evil-VB6
    2013 Samples: MS CODE Samples

    CodeGuru Reviewer
    2006 Dell CSP
    2006, 2007 & 2008 MVP Visual Basic
    If your question has been answered satisfactorily, and it has been helpful, then, please, Rate this Post!

  3. #3
    Join Date
    Jun 2005
    Location
    JHB South Africa
    Posts
    3,772

    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.

  4. #4
    Join Date
    Mar 2011
    Location
    The City of Discovery
    Posts
    3

    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.

  5. #5
    Join Date
    Jul 2001
    Location
    Sunny South Africa
    Posts
    11,092

    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
  •  


Windows Mobile Development Center


Click Here to Expand Forum to Full Width

This is a CodeGuru survey question.


Featured


HTML5 Development Center