Visual Basic .NET Forums  
Click here to advertise with us

Go Back   Visual Basic .NET Forums > VB.NET > Windows Forms

Windows Forms Discussion related to Winforms application development

VB.NET Forums Newsletter Signup:
Email address:


Reply
 
LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 11-16-2008, 8:07 PM
VB.NET Forum Newbie
.NET Framework: .NET 3.0 (VS 2005/2008)
 
Join Date: Nov 2008
Age: 19
Posts: 4
Reputation: 0
Demon4231 is on a distinguished programming path ahead
Default Save/Load Dialog and Encryption

I've kinda been teaching myself on how to use VB.net and I made a program that stores information for my games and programs. I am using My.Settings to store the information but I found out that after I reformatted my computer and re-installed windows all of the information is gone. So what I want to know how to do is encrypt all of the information that is in My.Settings then save it through the Save Dialog so the user is allow to save the file where ever they want to save it. Then when the user wants to open the file have them select the file and decrypt it and load it back in to the program.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #2 (permalink)  
Old 11-16-2008, 9:22 PM
jmcilhinney's Avatar
VB.NET Forum Moderator
.NET Framework: .NET 3.5 (VS 2008)
 
Join Date: Aug 2004
Location: Sydney, Australia
Age: 40
Posts: 6,124
Reputation: 542
jmcilhinney VB.NET gold medalistjmcilhinney VB.NET gold medalistjmcilhinney VB.NET gold medalistjmcilhinney VB.NET gold medalistjmcilhinney VB.NET gold medalistjmcilhinney VB.NET gold medalistjmcilhinney VB.NET gold medalistjmcilhinney VB.NET gold medalistjmcilhinney VB.NET gold medalistjmcilhinney VB.NET gold medalistjmcilhinney VB.NET gold medalist
Default

Gee, this sounds familiar. I'm still flabbergasted that the fact that the information is gone after a reformat comes as a surprise. When you format a partition the tool specifically tells you that all data on the volume will be lost.

Anyway, I also don't really understand why you feel encryption is required here. You know that the config file is just plain text, right? The user can open it and read what it contains at any time. I'm not sure why, if it's OK to be in plain view while the app is installed, it's not OK other times. If you're concerned about securing the data in the config file then shouldn't it be encrypted at all times?
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #3 (permalink)  
Old 11-16-2008, 9:28 PM
VB.NET Forum Newbie
.NET Framework: .NET 3.0 (VS 2005/2008)
 
Join Date: Nov 2008
Age: 19
Posts: 4
Reputation: 0
Demon4231 is on a distinguished programming path ahead
Default

Well I'm not too concerned seeing that I have all the information in text files scattered throughout my storage drive. I just want to be able to save the information, but if I can keep it encrypted and secure at all times I would like to delete the text files that are scattered throughout my storage drive.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #4 (permalink)  
Old 11-16-2008, 9:41 PM
jmcilhinney's Avatar
VB.NET Forum Moderator
.NET Framework: .NET 3.5 (VS 2008)
 
Join Date: Aug 2004
Location: Sydney, Australia
Age: 40
Posts: 6,124
Reputation: 542
jmcilhinney VB.NET gold medalistjmcilhinney VB.NET gold medalistjmcilhinney VB.NET gold medalistjmcilhinney VB.NET gold medalistjmcilhinney VB.NET gold medalistjmcilhinney VB.NET gold medalistjmcilhinney VB.NET gold medalistjmcilhinney VB.NET gold medalistjmcilhinney VB.NET gold medalistjmcilhinney VB.NET gold medalistjmcilhinney VB.NET gold medalist
Default

If you're interested in securing config data then have a look at this:

Protected Configuration (Encrypting Config Files)

To get the path of the config file in code use:
Code:
Application.ExecutablePath & ".config"
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Reply

Bookmarks


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

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





All times are GMT -4. The time now is 5:40 PM.

Powered by vBulletin® Version 3.8.5
Copyright ©2000 - 2010, Jelsoft Enterprises Ltd.
Search Engine Optimization by vBSEO 3.3.2


For advertising opportunities click here.