473,512 Members | 15,089 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

config Files and Sensitive Info

In my VB.Net Windows app, I am storing certain information in the App.config
file. Howerver, there is certain information I would like to store there but
am hesitant to because I don't want it changed, modified, etc.

Is the App.config file still a good place for this, and if so, is there a
way to encrypt it so that the user has no idea what the value is? Or should
I be storing this elsewhere?

For example, my app times out after 30 days. I want to store the install
date somewhere, but if I install it in the App.Config, the users who know
what they are doing can modify this date.

Thoughts?
--
Thanks,

Scott
Nov 21 '05 #1
2 912
Write the install date into the registry and encrypt it. Just make sure you
remove the entry if the user uninstalls your app!
The config file is way to easy to modify.
"SQLScott" <SQ******@discussions.microsoft.com> wrote in message
news:79**********************************@microsof t.com...
In my VB.Net Windows app, I am storing certain information in the App.config file. Howerver, there is certain information I would like to store there but am hesitant to because I don't want it changed, modified, etc.

Is the App.config file still a good place for this, and if so, is there a
way to encrypt it so that the user has no idea what the value is? Or should I be storing this elsewhere?

For example, my app times out after 30 days. I want to store the install
date somewhere, but if I install it in the App.Config, the users who know
what they are doing can modify this date.

Thoughts?
--
Thanks,

Scott

Nov 21 '05 #2
Thanks Greg. I was leaning toward putting it there, but wanted to hear what
others said.

Scott

"Greg" wrote:
Write the install date into the registry and encrypt it. Just make sure you
remove the entry if the user uninstalls your app!
The config file is way to easy to modify.
"SQLScott" <SQ******@discussions.microsoft.com> wrote in message
news:79**********************************@microsof t.com...
In my VB.Net Windows app, I am storing certain information in the

App.config
file. Howerver, there is certain information I would like to store there

but
am hesitant to because I don't want it changed, modified, etc.

Is the App.config file still a good place for this, and if so, is there a
way to encrypt it so that the user has no idea what the value is? Or

should
I be storing this elsewhere?

For example, my app times out after 30 days. I want to store the install
date somewhere, but if I install it in the App.Config, the users who know
what they are doing can modify this date.

Thoughts?
--
Thanks,

Scott


Nov 21 '05 #3

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

2
436
by: Tim Blizard | last post by:
I know this topic has been discussed before but I couldn't find any thread more recent than about 18 months and was interested in what conclusions people had come to recently. Invariably 3...
3
4149
by: Chris Fink | last post by:
Should the web.config file be included in my deployment, IE physically located in the web app's virtual directory on a release? It makes me nervous having my DB conn string, etc in a ASCII file so...
3
16536
by: John Buchmann | last post by:
In my web.config, I have a section that has a name and password: <credentials passwordFormat="Clear"> <user name="aaa" password="bbb" /> </credentials> Is this secure? What is to stop...
4
5374
by: tommy | last post by:
hello everbody, i write a little asp-application with forms-authentication. i copy my aspx-files with web.config to my webspace and i get the error above... i tried to set the...
5
1794
by: Daniel | last post by:
Hi, is the a way to prevent aspnet process to restart after web.config is modified? like, waiting for all sessions to close, or not restart at all ? Thank you, Daniel
5
3665
by: Jason Chan | last post by:
I have a subfolder in a webapp How can the aspx in the subfolder access the web.config in the webapp. I.e. I stored the connectionstring in the \webapp\web.config how the...
7
2779
by: Dan | last post by:
I am trying to add a definition for ConnString to web.config as follows (VB.NET STD 2003) <configuration> <system.web> .......... <appsettings> <add key="ConnString" value="C:\test\test.mdb"...
3
1702
by: Rob R. Ainscough | last post by:
Just trying to figure out if I need to include myApp.exe.config when I XCOPY the files to another PC? Rob.
6
1582
by: David++ | last post by:
Hi folks, So I have implemented a Web service which provides several Web Methods. Before the client can use the WebMethods they must first be authenticated and authorized i.e. they login, obtain...
0
7252
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
7153
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
7432
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
7517
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
5676
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
1
5077
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...
0
4743
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and...
0
1583
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated ...
0
452
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.